13 lines
229 B
Go
13 lines
229 B
Go
|
package riscvemu
|
||
|
|
||
|
type World 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)
|
||
|
}
|