riscv software model without RVC now trap on RVC instruction before pcWrite + 2
This commit is contained in:
parent
a12ca43284
commit
9ac1d3d59e
|
@ -957,6 +957,9 @@ public:
|
||||||
default: ilegalInstruction(); break;
|
default: ilegalInstruction(); break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#ifndef COMPRESSED
|
||||||
|
ilegalInstruction(); return;
|
||||||
|
#endif
|
||||||
switch((iBits(0, 2) << 3) + iBits(13, 3)){
|
switch((iBits(0, 2) << 3) + iBits(13, 3)){
|
||||||
case 0: rfWrite(i16_addr2, rf_sp + i16_addi4spn_imm); pcWrite(pc + 2); break;
|
case 0: rfWrite(i16_addr2, rf_sp + i16_addi4spn_imm); pcWrite(pc + 2); break;
|
||||||
case 2: {
|
case 2: {
|
||||||
|
|
Loading…
Reference in New Issue