Fix exception handeling
This commit is contained in:
parent
5243e46ffb
commit
24e1e3018c
|
@ -716,7 +716,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
when(exceptionValidsRegs.orR){
|
when(exceptionValids.orR){
|
||||||
fetcher.haltIt()
|
fetcher.haltIt()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,6 @@ class IBusCachedPlugin(resetVector : BigInt = 0x80000000l,
|
||||||
|
|
||||||
redoFetch clearWhen(!iBusRsp.readyForError)
|
redoFetch clearWhen(!iBusRsp.readyForError)
|
||||||
cache.io.cpu.fill.valid clearWhen(!iBusRsp.readyForError)
|
cache.io.cpu.fill.valid clearWhen(!iBusRsp.readyForError)
|
||||||
if (catchSomething) decodeExceptionPort.valid clearWhen(fetcherHalt)
|
|
||||||
|
|
||||||
redoBranch.valid := redoFetch
|
redoBranch.valid := redoFetch
|
||||||
redoBranch.payload := (if (decodePcGen) decode.input(PC) else cacheRsp.pc)
|
redoBranch.payload := (if (decodePcGen) decode.input(PC) else cacheRsp.pc)
|
||||||
|
|
|
@ -372,7 +372,7 @@ class IBusSimplePlugin(resetVector : BigInt,
|
||||||
exceptionDetected := True
|
exceptionDetected := True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
decodeExceptionPort.valid := exceptionDetected && iBusRsp.readyForError && !fetcherHalt
|
decodeExceptionPort.valid := exceptionDetected && iBusRsp.readyForError
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue