Fix xtval when no exception and read_only
This commit is contained in:
parent
2a06907902
commit
4c7025b964
|
@ -866,6 +866,10 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
|
|||
}
|
||||
}
|
||||
|
||||
if(exceptionPortCtrl == null){
|
||||
if(mbadaddrAccess == CsrAccess.READ_ONLY) mtval := 0
|
||||
if(sbadaddrAccess == CsrAccess.READ_ONLY) stval := 0
|
||||
}
|
||||
|
||||
lastStage plug new Area{
|
||||
import lastStage._
|
||||
|
|
Loading…
Reference in New Issue