Skip to content

Commit

Permalink
Update src/main/scala/rocket/CSR.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Hongren Zheng <i@zenithal.me>
  • Loading branch information
vithursons and ZenithalHourlyRate authored Jul 25, 2023
1 parent de5db3b commit 241759c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/CSR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ class CSRFile(
reg_mstatus.v := true.B
reg_vsstatus.spp := reg_mstatus.prv
reg_vsepc := epc
reg_vscause := Mux(cause(xLen-1), interruptMSB.U | (Mux(cause_lsbs > 12, cause_lsbs, cause_lsbs - 1)), cause)
reg_vscause := Mux(cause(xLen-1) && !cause_lsbs(cause_lsbs.getWidth-1, 4).orR, Cat(cause(xLen-1, 2), 1.U(2.W)), cause)
reg_vstval := tval
reg_vsstatus.spie := reg_vsstatus.sie
reg_vsstatus.sie := false.B
Expand Down

0 comments on commit 241759c

Please sign in to comment.