You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached riscv-dv generated code attempts to access mhpmcounter10, which is not implemented in either the DUT or Spike. This results in a segmentation fault and the code fails. Below is the specific line of code causing the issue:
Could you please provide guidance on how to handle this mismatch or segmentation fault when accessing unimplemented HPM counters?
Thank you!
The text was updated successfully, but these errors were encountered:
Bill94l
changed the title
Segmentation Fault Caused by mhpmcounter10 Access Not Implemented in DUT or Spike
Segmentation Fault Caused by mhpmcounter10 Access Not Implemented in DUT and Spike
Dec 9, 2024
I would say, better focus on getting things ok with RVLS, and omit this one.
With RVLS using SocSim
So, when i have crashed happening in RVLS (when called from SpinalSim), then what i do, is to ask the testbench to generate the trace.log file (--trace argument should do it), which contains all the execution trace in the format RVLS is able to read.
Then with that trace.log file, i run RVLS in debug mode (in a standalone mode), with the -f trace.log argument.
There i can use regular C/C++ debug tools and figure out what is going wrong.
Just be sure to compile riscv-isa-sim in debug mode by adding :
CFLAGS='-g -O0' CXXFLAGS='-g -O0'
as arguments of the configure command
Hi,
The attached riscv-dv generated code attempts to access mhpmcounter10, which is not implemented in either the DUT or Spike. This results in a segmentation fault and the code fails. Below is the specific line of code causing the issue:
After this issue #121 (comment) I modified the number of HPM counters in Spike to ensure consistency between the DUT and Spike but that doesn't change anything:
https://github.com/SpinalHDL/riscv-isa-sim/blob/5b37ab699f6176ea7f2d2b3187f75625eca7e511/riscv/processor.h#L22
Results:
failed_test.zip
Could you please provide guidance on how to handle this mismatch or segmentation fault when accessing unimplemented HPM counters?
Thank you!
The text was updated successfully, but these errors were encountered: