X86: Don't map the local APIC into the physical address space in SE mode.
--HG-- extra : convert_revision : b7103974b12130bbf43583c4cb5294b808add208
This commit is contained in:
parent
65332ef3a9
commit
66aaabf4ae
1 changed files with 2 additions and 0 deletions
|
@ -592,6 +592,7 @@ TLB::translate(RequestPtr &req, ThreadContext *tc, bool write, bool execute)
|
|||
req->setPaddr(vaddr);
|
||||
}
|
||||
// Check for an access to the local APIC
|
||||
#if FULL_SYSTEM
|
||||
LocalApicBase localApicBase = tc->readMiscRegNoEffect(MISCREG_APIC_BASE);
|
||||
Addr baseAddr = localApicBase.base << 12;
|
||||
Addr paddr = req->getPaddr();
|
||||
|
@ -733,6 +734,7 @@ TLB::translate(RequestPtr &req, ThreadContext *tc, bool write, bool execute)
|
|||
}
|
||||
req->setPaddr(regNum * sizeof(MiscReg));
|
||||
}
|
||||
#endif
|
||||
return NoFault;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue