mirror of
https://github.com/SpinalHDL/VexRiscv.git
synced 2025-01-03 03:43:39 -05:00
riscv software model without RVC now trap on RVC instruction before pcWrite + 2
This commit is contained in:
parent
a12ca43284
commit
9ac1d3d59e
1 changed files with 3 additions and 0 deletions
|
@ -957,6 +957,9 @@ public:
|
|||
default: ilegalInstruction(); break;
|
||||
}
|
||||
} else {
|
||||
#ifndef COMPRESSED
|
||||
ilegalInstruction(); return;
|
||||
#endif
|
||||
switch((iBits(0, 2) << 3) + iBits(13, 3)){
|
||||
case 0: rfWrite(i16_addr2, rf_sp + i16_addi4spn_imm); pcWrite(pc + 2); break;
|
||||
case 2: {
|
||||
|
|
Loading…
Reference in a new issue