Ensure an error when reading a non-existent CSR.
[riscv-tests.git] / debug / targets / RISC-V / spike-rtos.cfg
index 799e3cba3151c493e89f163e4b39bf1752897b7a..5a70f523d56afee94c668c68399e21d3f7a2a38d 100644 (file)
@@ -13,5 +13,9 @@ target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
 
 gdb_report_data_abort enable
 
+# Expose an unimplemented CSR so we can test non-existent register access
+# behavior.
+riscv expose_csrs 2288
+
 init
 reset halt