We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a975039 + 27615ae commit e9ea4b3Copy full SHA for e9ea4b3
test/unittests/test_mmu.S
@@ -299,6 +299,24 @@ test_name MMU_USER_MODE_5
299
calli disable_user_mode
300
check_r3 0xa00
301
302
+# writing IE should set PSW bits, too
303
+test_name PSW_IE_1
304
+ mvi r1, 0x70
305
+ wcsr PSW, r1
306
+ mvi r1, 7
307
+ wcsr IE, r1
308
+ rcsr r3, PSW
309
+ wcsr PSW, r0
310
+ check_r3 0x77
311
+
312
+# writing PSW should set IE bits
313
+test_name PSW_IE_2
314
+ mvi r1, 0x27
315
316
+ rcsr r3, IE
317
318
+ check_r3 7
319
320
end
321
322
enable_itlb:
0 commit comments