Skip to content

Commit

Permalink
[Verif] Clear MIP CSR to avoid trapping in CSR tests (resume #1660) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubJalali authored Nov 29, 2023
1 parent 6254dfa commit 447d01a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions verif/tests/custom/csr_embedded/csrrw_ro_test.S
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,11 @@ main:
#MIP read value
csrr x14, 0x344

#Clear MIP to avoid traping
csrw 0x344, x0

#MIP read value
csrr x14, 0x344
##########################
#PMPADDR3 testing W/R values '{'hffffffff, 'h0, 'h55555555, 'haaaaaaaa, 'hf479076}
##########################
Expand Down

0 comments on commit 447d01a

Please sign in to comment.