rv32emu icon indicating copy to clipboard operation
rv32emu copied to clipboard

Failed to run arch-test on arm64 machine

Open howjmay opened this issue 1 year ago • 3 comments

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

howjmay avatar Oct 27 '24 15:10 howjmay

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?

ChinYikMing avatar Oct 27 '24 16:10 ChinYikMing

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

howjmay avatar Oct 27 '24 22:10 howjmay

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?

jserv avatar Oct 28 '24 01:10 jserv

@howjmay, can you confirm with the latest master branch?

The executable has been added, however, the Aarch64 support of architecture test is currently in progress in #547 .

vacantron avatar Feb 04 '25 07:02 vacantron

The executable for Arm64/MacOS has been added to rv32emu-prebuilt . Rerun .ci/riscv-tests.sh on master branch and it should work as expected

See Releases .

vacantron avatar Feb 13 '25 11:02 vacantron

The executable for Arm64/MacOS has been added to rv32emu-prebuilt . Rerun .ci/riscv-tests.sh on master branch and it should work as expected

Defer to @howjmay for confirmation.

jserv avatar Feb 13 '25 13:02 jserv

Sail model for macOS/arm64 is runnable and arch-test is passed, see CI.

ChinYikMing avatar Feb 13 '25 15:02 ChinYikMing