We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67e7759 + 9f053a8 commit ad33ed3Copy full SHA for ad33ed3
isa/rv64ssvnapot/napot.S
@@ -121,6 +121,7 @@ RVTEST_CODE_BEGIN
121
# Do a store to MY_VA
122
li a0, MY_VA
123
li a1, 42
124
+napot_store:
125
sw a1, (a0)
126
127
# Clear MPRV
@@ -153,6 +154,16 @@ RVTEST_CODE_BEGIN
153
154
.align 2
155
.global mtvec_handler
156
mtvec_handler:
157
+ # Skip if Svnapot is not implemented.
158
+ csrr t5, mcause
159
+ li t6, CAUSE_STORE_PAGE_FAULT
160
+ bne t5, t6, die
161
+ csrr t5, mepc
162
+ la t6, napot_store
163
164
+ csrr t5, mtval
165
+ li t6, MY_VA
166
+ beq t5, t6, pass
167
die:
168
RVTEST_FAIL
169
0 commit comments