Skip to content

Commit

Permalink
CSR: mark misa as unwritable (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense authored Nov 6, 2024
1 parent 5dafeda commit 61923a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/nutcore/backend/fu/CSR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class CSR(implicit val p: NutCoreConfig) extends NutCoreModule with HasCSRConst{

// Machine Trap Setup
MaskedRegMap(Mstatus, mstatus, mstatusWMask, mstatusUpdateSideEffect),
MaskedRegMap(Misa, misa), // now MXL, EXT is not changeable
MaskedRegMap(Misa, misa, 0.U, MaskedRegMap.Unwritable),
MaskedRegMap(Medeleg, medeleg, "hbbff".U(64.W)),
MaskedRegMap(Mideleg, mideleg, "h222".U(64.W)),
MaskedRegMap(Mie, mie),
Expand Down

0 comments on commit 61923a1

Please sign in to comment.