From c8c921b9db14d434781e7c55dee79a3a71db871d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 22 Nov 2010 05:49:03 -0500 Subject: [PATCH] X86: Mark IO space accesses as uncachable. --- src/arch/x86/tlb.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index dbba52af0..4c8d96f8b 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -511,6 +511,7 @@ TLB::translateInt(RequestPtr req, ThreadContext *tc) req->setFlags(Request::MMAPED_IPR); req->setPaddr(MISCREG_PCI_CONFIG_ADDRESS * sizeof(MiscReg)); } else if ((IOPort & ~mask(2)) == 0xCFC) { + req->setFlags(Request::UNCACHEABLE); Addr configAddress = tc->readMiscRegNoEffect(MISCREG_PCI_CONFIG_ADDRESS); if (bits(configAddress, 31, 31)) { @@ -519,6 +520,7 @@ TLB::translateInt(RequestPtr req, ThreadContext *tc) (IOPort & mask(2))); } } else { + req->setFlags(Request::UNCACHEABLE); req->setPaddr(PhysAddrPrefixIO | IOPort); } return NoFault; -- 2.30.2