Open KatCe opened 1 year ago
I have encountered the same problem, have you solved it?
No, not for the original spike. The tests ran with with spike cloned from https://github.com/lowRISC/riscv-isa-sim.git (commit 9af9730baf7b956c3072c1b436d867aca5ef8f4c).
which riscv_toolchain are you using? is it riscv32/64-unknown-elf-gcc?
I used riscv32-unknown-elf-gcc (g2ee5e430018) 12.2.0
you should pass --misaligned option to spike to enable misaligned memory accesses
The latest version of spike has no --misaligned argument and the build configuration option --enable-misaligned does not exist in the latest version of spike.
Check your iss simulation log to see if the exception "trap_store_address_misaligned" occured or not, if this is the case, it means that your spike does not support unaligned memory access. otherwise, you should try another solution
Yes, this exception occurs with the original spike, but not with the lowRISC fork. Would be good to mention in the documentation which version of Spike should be used.
I'm also having the same issue. Is it solved ?
can you tell me the commit id of your riscv-dv?
When generating the default set of regression tests with the following command:
and using the spike isa simulator cloned from the link (https://github.com/riscv-software-src/riscv-isa-sim, commit 740e6353a166ec3ba936b200482d6fc381b8082b) in the HTML documentation preview (https://htmlpreview.github.io/?https://github.com/google/riscv-dv/blob/master/docs/build/singlehtml/index.html#document-index), the tests fail in spike with the following error:
in out_rv64gc/spike_sim/riscv_arithmetic_basic_test.0.log
Test generation and spike simulation work fine for the default target rv32imc.
Test generation and spike simulation work fine for target rv64gc with spike cloned from https://github.com/lowRISC/riscv-isa-sim.git (commit 9af9730baf7b956c3072c1b436d867aca5ef8f4c).