riscvemu/world.go
2022-12-28 13:59:35 +13:00

15 lines
319 B
Go

package riscvemu
// EEI (Execution Environment Interface) is the enivronment in which RISC-V
// code is run.
type EEI interface {
ReadByte(addr uint32) (byte, error)
Read32(addr uint32) (uint32, error)
WriteByte(addr uint32, value byte) error
Write32(addr, value uint32) error
Syscall()
Trap() (bool, error)
}