Skip to content

Commit f5b2ed3

Browse files
authored
Merge pull request #903 from riscv/itrigger_fire
AR: Clarify itrigger and trigger number translation
2 parents 3a20826 + 92835a8 commit f5b2ed3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xml/hwbp_registers.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,19 +1132,19 @@
11321132
<register name="Interrupt Trigger" short="itrigger" address="0x7a1">
11331133
This register is accessible as \RcsrTdataOne when \FcsrTdataOneType is 4.
11341134

1135-
This trigger may fire on any of the interrupts configurable in \Rmie
1136-
(described in the Privileged Spec) or the NMI. The interrupts to fire on are
1137-
configured by setting the same bit in \RcsrTdataTwo as would be set in
1138-
\Rmie to enable the interrupt.
1135+
This trigger can fire when an interrupt trap is taken.
1136+
1137+
It can be enabled for individual interrupt numbers by setting the bit
1138+
corresponding to the interrupt number in \RcsrTdataTwo. The interrupt
1139+
number is interpreted in the mode that the trap handler executes in.
1140+
(E.g. virtualized interrupt numbers are not the same in every mode.)
1141+
In addition the trigger can be enabled for non-maskable interrupts using
1142+
\FcsrItriggerNmi.
11391143

11401144
Hardware may only support a subset of interrupts for this trigger. A
11411145
debugger must read back \RcsrTdataTwo after writing it to confirm the
11421146
requested functionality is actually supported.
11431147

1144-
The trigger only fires if the hart takes a trap because of the
1145-
interrupt. (E.g.\ it does not fire when a timer interrupt occurs but that
1146-
interrupt is not enabled in \Rmie.)
1147-
11481148
When the trigger matches, it fires after the trap occurs, just before
11491149
the first instruction of the trap handler is executed. If
11501150
\FcsrItriggerAction=0, the standard CSRs are updated for taking the

0 commit comments

Comments
 (0)