riscvemu/cpu_test.go

18 lines
214 B
Go

package riscvemu
import (
"testing"
)
func TestCPU(t *testing.T) {
env := NewVirtualEEI()
_ = env.Write32(0, 0b00000000000100000000000001110011) // EBREAK
c := NewCPU(&env)
err := c.Step()
panic(err)
}