From: Gabe Black Date: Sat, 1 Mar 2008 05:05:12 +0000 (-0500) Subject: X86: Don't map the local APIC into the physical address space in SE mode. X-Git-Tag: copyright_update~24 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66aaabf4ae05508ea8fa223c84b7a78aa754c7f9;p=gem5.git X86: Don't map the local APIC into the physical address space in SE mode. --HG-- extra : convert_revision : b7103974b12130bbf43583c4cb5294b808add208 --- diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index a87abf212..3e720c9ae 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -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; };