sysprog21 / rv32emu

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

Fail to run benchmark programs on Arm64/Linux #514

Open jserv opened 2 days ago

jserv commented 2 days ago

When I ran some standard benchmark programs on Ubuntu Linux (Arm64), several of them crashed with segmentation faults. Execution mode is interpreter.

Tested on

Known failure programs: (prebuilt ELF in directory build/riscv32/)

RinHizakura commented 2 days ago

Hi @jserv, I found these segmentation faults also happen on x86_64 platform. There could be some regression.

RinHizakura commented 2 days ago

The change feca1dea73 can cause it. @jserv, have you tried building with -DMEM_SIZE=0xFFFFFFFFULL for a larger memory size? I wonder if I am checking the same issue with you. After increasing the MEM_SIZE, these tests can be run on my ARM64 platform(Jetson AGX Orin Developer Kit).