riscv-software-src / riscv-tests

Other
906 stars 463 forks source link

[debug] Reserve the trigger in `HwbpManual` #575

Closed en-sc closed 2 months ago

en-sc commented 3 months ago

After https://github.com/riscv-collab/riscv-openocd/pull/1111 is merged, the registers a user wishes to have direct control of should be reserved. This is the case in HwbpManual.

The test still works with older OpenOCD versions, since no exception is generated when a command (riscv reserve_trigger in this case) is not found.