Documentation
¶
Overview ¶
Package egg/riscv implements a RISC-V 32 IM machine for the EGG emulator.
Index ¶
- type RiscV
- func (m *RiscV) ArchitetureName() string
- func (m *RiscV) Assemble(asm string) ([]uint8, []assembler.DebuggerToken, error)
- func (m *RiscV) GetCurrentInstructionAddress() uint64
- func (m *RiscV) GetMemory(addr uint64) (uint8, error)
- func (m *RiscV) GetMemoryChunk(addr uint64, size uint64) ([]uint8, error)
- func (m *RiscV) GetRegister(reg uint64) (uint64, error)
- func (m *RiscV) GetRegisterNumber(r string) (uint64, error)
- func (m *RiscV) LoadProgram(program []uint8) error
- func (m *RiscV) NextInstruction() (*machine.Call, error)
- func (m *RiscV) SetMemory(addr uint64, content uint8) error
- func (m *RiscV) SetMemoryChunk(addr uint64, content []uint8) error
- func (m *RiscV) SetRegister(reg uint64, content uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RiscV ¶
type RiscV struct {
// contains filtered or unexported fields
}
The RiscV struct implements the machine interface needed by the EGG emulator.
func (*RiscV) ArchitetureName ¶
func (*RiscV) GetCurrentInstructionAddress ¶
func (*RiscV) GetMemoryChunk ¶
func (*RiscV) LoadProgram ¶
Click to show internal directories.
Click to hide internal directories.