[processor_check] minor fix

This commit is contained in:
stnolting 2025-01-07 22:26:01 +01:00
parent 03dd4dc963
commit c3a44c7327

View file

@ -599,7 +599,7 @@ int main() {
// number of traps we are expecting + expected instruction word of last illegal instruction
uint32_t invalid_instr;
if (neorv32_cpu_csr_read(CSR_MISA) & (1<<CSR_MISA_C)) { // C extension enabled
tmp_a += 17;
tmp_a += 18;
invalid_instr = 0x08812681; // mtinst: pre-decompressed; clear bit 1 if compressed instruction
}
else { // C extension disabled