aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike-2.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets/RISC-V/spike-2.cfg')
-rw-r--r--debug/targets/RISC-V/spike-2.cfg7
1 files changed, 5 insertions, 2 deletions
diff --git a/debug/targets/RISC-V/spike-2.cfg b/debug/targets/RISC-V/spike-2.cfg
index 0eadb89..640fba9 100644
--- a/debug/targets/RISC-V/spike-2.cfg
+++ b/debug/targets/RISC-V/spike-2.cfg
@@ -18,8 +18,11 @@ gdb_report_register_access_error enable
# Expose an unimplemented CSR so we can test non-existent register access
# behavior.
-riscv expose_csrs 2288
-riscv expose_custom 1,12345-12348
+foreach t [target names] {
+ targets $t
+ riscv expose_csrs 2288
+ riscv expose_custom 1,12345-12348
+}
init