Skip to content

Commit 9d67355

Browse files
authored
Merge pull request #151 from SpinalHDL/envcall_tval_fix
Fix attempt to #150
2 parents 4980a53 + 9652e5f commit 9d67355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/scala/naxriscv/execute/EnvCallPlugin.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package naxriscv.execute
66

7+
import naxriscv.Frontend.{INSTRUCTION_ALIGNED, MICRO_OP}
78
import naxriscv.Global._
89
import naxriscv.fetch.{FetchCachePlugin, FetchPlugin}
910
import naxriscv.frontend.DispatchPlugin
@@ -120,6 +121,7 @@ class EnvCallPlugin(val euId : String)(var rescheduleAt : Int = 0) extends Plugi
120121
setup.reschedule.cause := CSR.MCAUSE_ENUM.ILLEGAL_INSTRUCTION
121122
setup.reschedule.reason := ScheduleReason.TRAP
122123
setup.reschedule.skipCommit := True
124+
setup.reschedule.tval := MICRO_OP.resized
123125
}
124126

125127
//Handle FENCE.I and FENCE.VMA

0 commit comments

Comments
 (0)