This commit is contained in:
Dolu1990 2019-03-25 11:47:56 +01:00
parent c34f5413a3
commit 1ec11dc03d
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class MmuPlugin(virtualRange : UInt => Bool,
val requireMmuLockup = virtualRange(port.bus.cmd.virtualAddress) && !port.bus.cmd.bypassTranslation && csr.satp.mode
if(!allowMachineModeMmu) {
requireMmuLockup clearWhen(!csr.status.mprv && privilegeService.isMachine())
if(port.priority == MmuPort.PRIORITY_DATA) requireMmuLockup clearWhen(csr.status.mprv && pipeline(config.MPP) === 3)
if(port.priority != MmuPort.PRIORITY_DATA) requireMmuLockup clearWhen(csr.status.mprv && pipeline(config.MPP) === 3)
}
when(requireMmuLockup) {