When adding custom CSRs, it is very likely to forget to adapt this. We should probably allocate one or a few dump CSRs at fixed addresses, rather than using all unmapped CSRs as dump CSRs.
|
#define DUMP(val) ({ asm volatile("csrw 0x7C3, %0" ::"rK"(val)); }) |