Skip to content

Commit

Permalink
Fix RISC-V debug interface when stepping instructions which trigger a…
Browse files Browse the repository at this point in the history
… MMU refill
  • Loading branch information
Dolu1990 committed Jan 22, 2025
1 parent cf86f25 commit 2d34347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/vexiiriscv/misc/TrapPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ class TrapPlugin(val trapAt : Int) extends FiberPlugin with TrapService {

if(ats.mayNeedRedo) ATS_RSP.whenIsActive{
when(atsPorts.refill.rsp.valid){
api.harts(hartId).redo := True
goto(JUMP) //improvment: shave one cycle
when(atsPorts.refill.rsp.pageFault || atsPorts.refill.rsp.accessFault){
pending.state.exception := True
Expand Down

0 comments on commit 2d34347

Please sign in to comment.