Fixed priv.S to initialize stimecmp and agree with ImperasDV

This commit is contained in:
David Harris 2023-04-07 20:44:01 -07:00
parent 7ad8d7f774
commit 5c6d9f87a0

View File

@ -33,7 +33,8 @@ main:
ecall ecall
# Test read to stimecmp fails when MCOUNTEREN_TM is not set # Test read to stimecmp fails when MCOUNTEREN_TM is not set
addi t0, zero, 0 li t1, -3
csrw stimecmp, t1
csrr t0, stimecmp csrr t0, stimecmp