few more var parameters

This commit is contained in:
Dolu1990 2023-03-22 12:58:43 +01:00
parent a755d839b3
commit 385a195d16
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ case class CsrPluginConfig(
misaExtensionsInit : Int, misaExtensionsInit : Int,
misaAccess : CsrAccess, misaAccess : CsrAccess,
mtvecAccess : CsrAccess, mtvecAccess : CsrAccess,
mtvecInit : BigInt, var mtvecInit : BigInt,
mepcAccess : CsrAccess, mepcAccess : CsrAccess,
mscratchGen : Boolean, mscratchGen : Boolean,
mcauseAccess : CsrAccess, mcauseAccess : CsrAccess,
@ -458,7 +458,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
} }
override def getVexRiscvRegressionArgs() = List(s"SUPERVISOR=${if(config.supervisorGen) "yes" else "no"}, CSR=yes") override def getVexRiscvRegressionArgs() = List(s"SUPERVISOR=${if(config.supervisorGen) "yes" else "no"} CSR=yes")
var exceptionPendings : Vec[Bool] = null var exceptionPendings : Vec[Bool] = null
override def isExceptionPending(stage : Stage): Bool = exceptionPendings(pipeline.stages.indexOf(stage)) override def isExceptionPending(stage : Stage): Bool = exceptionPendings(pipeline.stages.indexOf(stage))

View File

@ -38,7 +38,7 @@ case class MmuPort(bus : MemoryTranslatorBus, priority : Int, args : MmuPortConf
case class MmuPortConfig(portTlbSize : Int, latency : Int = 0, earlyRequireMmuLockup : Boolean = false, earlyCacheHits : Boolean = false) case class MmuPortConfig(portTlbSize : Int, latency : Int = 0, earlyRequireMmuLockup : Boolean = false, earlyCacheHits : Boolean = false)
class MmuPlugin(ioRange : UInt => Bool, class MmuPlugin(var ioRange : UInt => Bool,
virtualRange : UInt => Bool = address => True, virtualRange : UInt => Bool = address => True,
// allowUserIo : Boolean = false, // allowUserIo : Boolean = false,
enableMmuInMachineMode : Boolean = false) extends Plugin[VexRiscv] with MemoryTranslator { enableMmuInMachineMode : Boolean = false) extends Plugin[VexRiscv] with MemoryTranslator {