arch-arm: Call finalizePhysical even when MMU is off
The finalizePhysical is just checking if the physical address falls within the m5op region (if using mmapped m5ops). There's not reason why we shouldn't enable it with virtual memory off Change-Id: I5ab80fd4e7886743abd4b7d85937b72253b578d3 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Richard Cooper <richard.cooper@arm.com>
This commit is contained in:
@@ -848,7 +848,12 @@ MMU::translateMmuOff(ThreadContext *tc, const RequestPtr &req, Mode mode,
|
||||
state.isStage2);
|
||||
setAttr(temp_te.attributes);
|
||||
|
||||
return testTranslation(req, mode, TlbEntry::DomainType::NoAccess, state);
|
||||
Fault fault = testTranslation(req, mode, TlbEntry::DomainType::NoAccess, state);
|
||||
if (fault == NoFault) {
|
||||
return finalizePhysical(req, tc, mode);
|
||||
} else {
|
||||
return fault;
|
||||
}
|
||||
}
|
||||
|
||||
Fault
|
||||
|
||||
Reference in New Issue
Block a user