Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed May 29, 2024
1 parent f335738 commit e5f3abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/naxriscv/execute/EnvCallPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class EnvCallPlugin(val euId : String)(var rescheduleAt : Int = 0) extends Plugi
when(XRET){
setup.reschedule.cause := CAUSE_XRET //the reschedule cause isn't the final value which will end up into XCAUSE csr
setup.reschedule.tval(1 downto 0) := xretPriv.asBits
when(xretPriv < priv.getPrivilege()){
when(xretPriv > priv.getPrivilege()){
setup.reschedule.cause := CSR.MCAUSE_ENUM.ILLEGAL_INSTRUCTION
setup.reschedule.reason := ScheduleReason.TRAP
setup.reschedule.skipCommit := True
Expand Down

0 comments on commit e5f3abb

Please sign in to comment.