sysprog21 / rv32emu

Compact and Efficient RISC-V RV32I[MAFC] emulator
MIT License
402 stars 99 forks source link

Failed to run arch-test on arm64 machine #506

Open howjmay opened 1 month ago

howjmay commented 1 month ago

Prebuilt binary of Sail doesn't exist. I was running test on Macbook M1, commit 164da62b64fa050569b22910ea207525884802ba.

$make arch-test
  CC    build/map.o
  CC    build/utils.o
  CC    build/decode.o
  CC    build/io.o
  CC    build/syscall.o
  CC    build/emulate.o
  CC    build/riscv.o
  CC    build/elf.o
  CC    build/cache.o
  CC    build/mpool.o
  CC    build/main.o
  LD    build/rv32emu
Fetching SHA-1 of prebuilt binaries ... [OK]
Checking SHA-1 of prebuilt binaries ... [OK]
git submodule update --init tests/
cp: build/sail_cSim/riscv_sim_RV32: No such file or directory
make: *** [arch-test] Error 1
ChinYikMing commented 1 month ago

I was running on an M2 without any errors (but having some dependency issue, i.e., riscof not found). Could you provide more details on how to reproduce this?

howjmay commented 1 month ago

But I did nothing. I have even run make clean to ensure I didnt change anything in the codebase. make arch-test is the only thing I ran

jserv commented 1 month ago

Prebuilt binary of Sail doesn't exist.

@vacantron, If including a darwin-arm64 (i.e., macOS ARM 64-bit binary) build of sail_cSim, what modifications would be necessary for rv32emu-prebuilt?