From: Gabe Black Date: Sun, 1 Feb 2009 08:11:49 +0000 (-0800) Subject: X86: Compute PCI config addresses correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06cdbe5ea7138d0f340448438d64e98c72936e1b;p=gem5.git X86: Compute PCI config addresses correctly. --- diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index 6f1c1a03c..1009386d7 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -547,7 +547,8 @@ TLB::translate(RequestPtr &req, ThreadContext *tc, bool write, bool execute) tc->readMiscRegNoEffect(MISCREG_PCI_CONFIG_ADDRESS); if (bits(configAddress, 31, 31)) { req->setPaddr(PhysAddrPrefixPciConfig | - bits(configAddress, 30, 0)); + mbits(configAddress, 30, 2) | + (IOPort & mask(2))); } } else { req->setPaddr(PhysAddrPrefixIO | IOPort);