Skip to content

Commit

Permalink
AR: Comment etrigger limited to 32 exceptions if XLEN=32
Browse files Browse the repository at this point in the history
Addresses #905, which reports that in 1.13 higher exception codes will
be used.
  • Loading branch information
timsifive committed Oct 18, 2023
1 parent 51f5a29 commit 01d2935
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xml/hwbp_registers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,13 @@
(E.g.\ to trap on an illegal instruction, the debugger sets bit 2 in
\RcsrTdataTwo.)

\begin{commentary}
If XLEN is 32, then it is not possible to set a trigger on Exception
Codes higher than 31. A future version of the RISC-V Privileged Spec
will likely define Exception Codes 32 through 47.
<!-- Source: https://github.com/riscv/riscv-debug-spec/issues/905#issue-1950231166 -->
\end{commentary}

Hardware may support only a subset of exceptions. A debugger must read
back \RcsrTdataTwo after writing it to confirm the requested functionality
is actually supported.
Expand Down

0 comments on commit 01d2935

Please sign in to comment.