Exception trigger introducing a breakpoint exception

160 views
Skip to first unread message

DingKai Huang

unread,
Jul 30, 2018, 3:47:38 AM7/30/18
to RISC-V Debug Group
Hi,

When an exception hits etrigger and introduces a breakpoint exception, mcause will be overwritten with 3 (breakpoint).
In this case, how can the software know the original exception cause? Assuming multiple bits in tdata2 are set.

It seems that the original exception cause can only be reserved when the etrigger.action is "enter debug mode".

Thanks,
DingKai

justin james

unread,
Jul 31, 2018, 1:19:35 AM7/31/18
to RISC-V Debug Group

Tim Newsome

unread,
Jul 31, 2018, 3:45:46 PM7/31/18
to DingKai Huang, RISC-V Debug Group
https://github.com/riscv/riscv-debug-spec/pull/309 attempts to solve this problem by allowing implementations to disable triggers that cause breakpoint exceptions while in exception handlers.

Tim

--
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+unsubscribe@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/d09da1be-bdfc-43ec-8c42-03192c67fc54%40groups.riscv.org.

Reply all
Reply to author
Forward
0 new messages