openhwgroup / cva6

The CORE-V CVA6 is an Application class 6-stage RISC-V CPU capable of booting Linux
https://docs.openhwgroup.org/projects/cva6-user-manual/
Other
2.14k stars 652 forks source link

[BUG] SPIKE model is not configurable with TvalEn core option #2243

Open LQUA opened 2 weeks ago

LQUA commented 2 weeks ago

Is there an existing CVA6 bug for this?

Bug Description

CV32A65X core has its TvalEn option set to 0. The following tests are failed :

The failure is due to the mtval value after the exception : the core set mtval to 0 (due to TvalEn) when SPIKE model is expecting the trapping address

In 64 bit configurations with TvalEn set to 0, rv64mi-p-ma_addr is also failed

This issue is linked to #1403

zchamski commented 2 weeks ago

This is a duplicate of https://github.com/openhwgroup/core-v-verif/issues/2468. Since the issue is on Spike side, it will be handled under https://github.com/openhwgroup/core-v-verif/.