fix #178
This commit is contained in:
parent
fa2899a1a2
commit
e78c0546a0
|
@ -956,9 +956,9 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
|
||||||
targetPrivilege := exceptionPortCtrl.exceptionTargetPrivilege
|
targetPrivilege := exceptionPortCtrl.exceptionTargetPrivilege
|
||||||
}
|
}
|
||||||
|
|
||||||
val trapCause = CombInit(interrupt.code)
|
val trapCause = CombInit(interrupt.code.resize(trapCodeWidth))
|
||||||
if(exceptionPortCtrl != null) when( hadException){
|
if(exceptionPortCtrl != null) when( hadException){
|
||||||
trapCause := exceptionPortCtrl.exceptionContext.code
|
trapCause := exceptionPortCtrl.exceptionContext.code.resized
|
||||||
}
|
}
|
||||||
|
|
||||||
val xtvec = Xtvec().assignDontCare()
|
val xtvec = Xtvec().assignDontCare()
|
||||||
|
|
Loading…
Reference in New Issue