From: Gabe Black Date: Tue, 23 Nov 2010 11:10:17 +0000 (-0500) Subject: X86: Obey the PCD (cache disable) bit in the page tables. X-Git-Tag: stable_2012_02_02~720 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cd349f44305d6ca9496f7f626f0f4f939bd84ad;p=gem5.git X86: Obey the PCD (cache disable) bit in the page tables. --- diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index 4c8d96f8b..52d9cdf9c 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -653,6 +653,8 @@ TLB::translate(RequestPtr req, ThreadContext *tc, Translation *translation, Addr paddr = entry->paddr | (vaddr & (entry->size-1)); DPRINTF(TLB, "Translated %#x -> %#x.\n", vaddr, paddr); req->setPaddr(paddr); + if (entry->uncacheable) + req->setFlags(Request::UNCACHEABLE); } else { //Use the address which already has segmentation applied. DPRINTF(TLB, "Paging disabled.\n");