Cover write to TIME CSR

This commit is contained in:
Jordan Carlin 2024-11-06 14:50:15 -08:00
parent 78a9edd40a
commit 85404bbc5b
No known key found for this signature in database

View File

@ -38,6 +38,9 @@ main:
csrrw t1, menvcfg, t0 csrrw t1, menvcfg, t0
csrrw t2, senvcfg, t0 csrrw t2, senvcfg, t0
# Test writing to TIME CSR
csrw time, zero
# testing FIOM with different privilege modes # testing FIOM with different privilege modes
# setting environment config (to both 1 and 0) in each privilege mode # setting environment config (to both 1 and 0) in each privilege mode
csrsi menvcfg, 1 csrsi menvcfg, 1