Getting Started run RiscvTimingSimpleCPU or any other RISCV in 32 Bit? #513
-
Couldnt find anything, how can i get the model to run on 32 bit? I'm getting this when trying to execute a 32 bit binary: src/arch/riscv/process.cc:122: fatal: fatal condition isa->rvType() != RV32 occurred: RISC V CPU should run in 32 bits mode |
Beta Was this translation helpful? Give feedback.
Answered by
rogerchang23424
Oct 30, 2023
Replies: 1 comment 2 replies
-
Can you let me know what config you used to execute 32 bits binaries? You need to set the parameter |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The user should not change the default parameter of riscv_type to "RV32". If the config are under example/gem5_library, you can manually add section following the processor=SimpleProcessor(...) to set riscv mode to 32 bits for both SE and FS mode.
Reference: https://github.com/gem5/gem5/blob/06bf783a8533fb1f78c041d2d49492b53eed26b4/tests/gem5/asmtest/configs/riscv_asmtest.py