I960_CPUComponent.h Source File
Back to the index.
Go to the documentation of this file. 1 #ifndef I960_CPUCOMPONENT_H
2 #define I960_CPUCOMPONENT_H
37 #define N_I960_REGS 32
38 #define N_I960_SFRS 32
50 "r3",
"r4",
"r5",
"r6",
"r7",
51 "r8",
"r9",
"r10",
"r11",
"r12",
54 "g0",
"g1",
"g2",
"g3",
55 "g4",
"g5",
"g6",
"g7",
56 "g8",
"g9",
"g10",
"g11",
"g12",
62 #define I960_G0 16 // offset to first parameter register
106 ss.flags(std::ios::hex | std::ios::showbase | std::ios::right);
107 ss << (uint32_t)vaddr;
123 DECLARE_DYNTRANS_INSTR(b);
124 DECLARE_DYNTRANS_INSTR(lda_displacement);
126 DECLARE_DYNTRANS_INSTR(mov_lit_reg);
127 DECLARE_DYNTRANS_INSTR(mov_reg_reg);
129 DECLARE_DYNTRANS_INSTR(sysctl);
131 void Translate(uint32_t iword, uint32_t iword2,
struct DyntransIC*
ic);
132 DECLARE_DYNTRANS_INSTR(ToBeTranslated);
148 uint32_t m_nr_of_valid_sfrs;
153 #endif // I960_CPUCOMPONENT_H
virtual size_t DisassembleInstruction(uint64_t vaddr, vector< string > &result)
Disassembles an instruction into readable strings.
virtual bool FunctionTraceReturnImpl(int64_t &retval)
static refcount_ptr< Component > Create(const ComponentCreateArgs &args)
Creates a I960_CPUComponent.
virtual int FunctionTraceArgumentCount()
StateVariables make up the persistent state of Component objects.
static void RunUnitTests(int &nSucceeded, int &nFailures)
A base-class for processors Component implementations that use dynamic translation.
virtual int GetDyntransICshift() const
virtual bool CheckVariableWrite(StateVariable &var, const string &oldValue)
Checks whether a write to a variable is OK.
virtual uint64_t PCtoInstructionAddress(uint64_t pc)
Convert PC value to instuction address.
A Component representing an Intel i960 processor.
struct arm_instr_call * ic
virtual bool VirtualToPhysical(uint64_t vaddr, uint64_t &paddr, bool &writable)
Virtual to physical address translation (MMU).
virtual void ShowRegisters(GXemul *gxemul, const vector< string > &arguments) const
virtual void ResetState()
Resets the state variables of this component.
virtual bool PreRunCheckForComponent(GXemul *gxemul)
Checks the state of this component, before starting execution.
virtual int64_t FunctionTraceArgument(int n)
virtual void(*)(CPUDyntransComponent *, DyntransIC *) GetDyntransToBeTranslated()
I960_CPUComponent()
Constructs a I960_CPUComponent.
virtual string VirtualAddressAsString(uint64_t vaddr)
Format a virtual address as a displayable string.
static string GetAttribute(const string &attributeName)
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18