Support disabling virtual memory
This commit is contained in:
parent
adc386f889
commit
81c752de84
@ -242,6 +242,7 @@ class PCR(implicit conf: RocketConfiguration) extends Module
|
||||
reg_status.s64 := true
|
||||
reg_status.u64 := true
|
||||
reg_status.zero := 0
|
||||
if (!conf.vm) reg_status.vm := false
|
||||
if (conf.rocc.isEmpty) reg_status.er := false
|
||||
if (!conf.fpu) reg_status.ef := false
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ import Util._
|
||||
case class RocketConfiguration(tl: TileLinkConfiguration,
|
||||
icache: ICacheConfig, dcache: DCacheConfig,
|
||||
fpu: Boolean, rocc: Option[RocketConfiguration => RoCC] = None,
|
||||
vm: Boolean = true,
|
||||
fastLoadWord: Boolean = true,
|
||||
fastLoadByte: Boolean = false,
|
||||
fastMulDiv: Boolean = true)
|
||||
|
Loading…
Reference in New Issue
Block a user