mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 05:37:16 -04:00
Clear MIP CSR to avoid trapping (#1660)
This commit is contained in:
parent
66287defa0
commit
6254dfa721
4 changed files with 24 additions and 0 deletions
|
@ -3042,6 +3042,12 @@ csrcs:
|
|||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
#Clear MIP to avoid traping
|
||||
csrw 0x344, x0
|
||||
|
||||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
##########################
|
||||
#MHPMCOUNTERH9 testing W/R values '{'h1f, 'h0, 'h15, 'ha, 'ha}
|
||||
##########################
|
||||
|
|
|
@ -3560,6 +3560,12 @@ csrcsi:
|
|||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
#Clear MIP to avoid traping
|
||||
csrw 0x344, x0
|
||||
|
||||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
##########################
|
||||
#MHPMCOUNTERH11 testing W/R values '{'h1f, 'h0, 'h15, 'ha, 'h11}
|
||||
##########################
|
||||
|
|
|
@ -1350,6 +1350,12 @@ csrrw:
|
|||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
#Clear MIP to avoid traping
|
||||
csrw 0x344, x0
|
||||
|
||||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
##########################
|
||||
#MHPMCOUNTERH27 testing W/R values '{'hffffffff, 'h0, 'h55555555, 'haaaaaaaa, 'h22c2d883}
|
||||
##########################
|
||||
|
|
|
@ -3320,6 +3320,12 @@ csrrwi:
|
|||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
#Clear MIP to avoid traping
|
||||
csrw 0x344, x0
|
||||
|
||||
#MIP read value
|
||||
csrr x14, 0x344
|
||||
|
||||
##########################
|
||||
#MHPMEVENT9 testing W/R values '{'h1f, 'h0, 'h15, 'ha, 'ha}
|
||||
##########################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue