Skip to content

Commit 099dc96

Browse files
committed
Add dcsr.cetrig for Smdbltrp
1 parent f798dca commit 099dc96

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

xml/core_registers.xml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,35 @@ same project unless stated otherwise.
7878
All values are reserved for future versions of this spec, or for use
7979
by other RISC-V extensions.
8080
</field>
81-
<field name="0" bits="23:18" access="R" reset="0" />
81+
<field name="0" bits="23:20" access="R" reset="0" />
82+
<field name="cetrig" bits="19" access="R/W" reset="0">
83+
This bit is part of ((Smdbltrp)) and only exists when that extension
84+
is implemented.
85+
86+
<value v="0" name="disabled">
87+
A hart in a critical error state does not enter Debug Mode but
88+
instead asserts the critical-error signal to the platform.
89+
</value>
90+
91+
<value v="1" name="enabled">
92+
A hart in a critical error state enters Debug Mode instead of
93+
asserting the critical-error signal to the platform. Upon such
94+
entry into Debug Mode, the cause field is set to 7, and the
95+
extcause field is set to 0, indicating a critical error
96+
triggered the Debug Mode entry. This cause has the highest
97+
priority among all reasons for entering Debug Mode. Resuming
98+
from Debug Mode following an entry from the critical error state
99+
returns the hart to the critical error state.
100+
</value>
101+
102+
[NOTE]
103+
====
104+
When {dcsr-cetrig} is enabled, resuming from Debug Mode
105+
following an entry due to a critical error will result in an
106+
immediate re-entry into Debug Mode due to the critical error.
107+
====
108+
</field>
109+
<field name="0" bits="18" access="R" reset="0" />
82110
<field name="ebreakvs" bits="17" access="WARL" reset="0">
83111
<value v="0" name="exception">
84112
`ebreak` instructions in VS-mode behave as described in the

0 commit comments

Comments
 (0)