57a58
> #include "arch/generic/mmapped_ipr.hh"
83a85,86
> const ArmSystem *sys = dynamic_cast<const ArmSystem *>(p->sys);
>
89a93,95
>
> if (sys)
> m5opRange = sys->m5opRange();
131a138,146
> const Addr paddr = req->getPaddr();
>
> if (m5opRange.contains(paddr)) {
> req->setFlags(Request::MMAPPED_IPR | Request::GENERIC_IPR);
> req->setPaddr(GenericISA::iprAddressPseudoInst(
> (paddr >> 8) & 0xFF,
> paddr & 0xFF));
> }
>
585c600
< return NoFault;
---
> return finalizePhysical(req, tc, mode);
1111d1125
< // Generate Illegal Inst Set State fault if IL bit is set in CPSR
1112a1127
> // Generate Illegal Inst Set State fault if IL bit is set in CPSR
1116d1130
< }
1118c1132,1137
< return fault;
---
> // Don't try to finalize a physical address unless the
> // translation has completed (i.e., there is a table entry).
> return te ? finalizePhysical(req, tc, mode) : NoFault;
> } else {
> return fault;
> }