Versions in this module Expand all Collapse all v0 v0.1.1 Oct 14, 2020 v0.1.0 Oct 7, 2020 Changes in this version + const RowAlignMask + const RowBytes + func GetElf(binaryPath string) *elf.File + func LoadPrograms(storage Loadable, elfFile *elf.File) + type ALUOp uint16 + const AMOAdd + const AMOAnd + const AMOMax + const AMOMaxu + const AMOMin + const AMOMinu + const AMOOr + const AMOSwap + const AMOXor + const LRW + const SCW + type AMOALU struct + func NewAMOALU() *AMOALU + func (a *AMOALU) LoadRes(addr uint64, len uint64, hartID uint64) + func (a *AMOALU) StoreCond(addr uint64, hartID uint64) bool + func (m *AMOALU) Operation(old uint64, operand uint64, operation ALUOp) uint64 + type BasicMem struct + func NewBasicMem(cap uint64, xlen riscv.Xlen) *BasicMem + func (h *BasicMem) Read(addr uint64, len uint64) ([]byte, error) + func (h *BasicMem) Write(addr uint64, data []byte) error + type Cache32 struct + func NewCache32(xlen riscv.Xlen) Cache32 + func (b *Cache32) Populate(addr uint64, data [RowBytes]byte) + func (b *Cache32) Read16(addr uint64) (data uint16, ok bool) + func (b *Cache32) Read32(addr uint64) (data uint32, ok bool) + type Loadable interface + Write func(address uint64, data []byte) error + type Loader interface + Entry func() uint64 + Load func(store Loadable) + ToHostAddr func() uint64 + type Mem interface + Read func(addr uint64, len uint64) ([]byte, error) + Write func(addr uint64, data []byte) error + type SpikeLoad struct + func NewSpikeLoad(elfPath string, xlen riscv.Xlen) *SpikeLoad + func (s SpikeLoad) Entry() uint64 + func (s SpikeLoad) Load(store Loadable) + func (s SpikeLoad) ToHostAddr() uint64