X86: Fix the ordering of special physical address ranges.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 12 Oct 2008 21:01:06 +0000 (14:01 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 12 Oct 2008 21:01:06 +0000 (14:01 -0700)
src/arch/x86/x86_traits.hh
src/cpu/BaseCPU.py

index be7572517ef2cc2489486cb913a6fbccd0b1093e..0347a70998b0f0926bb5eec02c4c0ae161f140ef 100644 (file)
@@ -92,8 +92,8 @@ namespace X86ISA
 
     const Addr PhysAddrPrefixIO = ULL(0x8000000000000000);
     const Addr PhysAddrPrefixPciConfig = ULL(0xC000000000000000);
-    const Addr PhysAddrPrefixLocalAPIC = ULL(0xA000000000000000);
-    const Addr PhysAddrPrefixInterrupts = ULL(0x2000000000000000);
+    const Addr PhysAddrPrefixLocalAPIC = ULL(0x2000000000000000);
+    const Addr PhysAddrPrefixInterrupts = ULL(0xA000000000000000);
     // Each APIC gets two pages. One page is used for local apics to field
     // accesses from the CPU, and the other is for all APICs to communicate.
     const Addr PhysAddrAPICRangeSize = 1 << 12;
index 51d447f0b1fc3d1cee92668e5541a264920cdcce..ef9b54f3fb238fdbe56635c7228c806dd7e785cf 100644 (file)
@@ -97,7 +97,7 @@ class BaseCPU(MemObject):
         dtb = Param.X86DTB(X86DTB(), "Data TLB")
         itb = Param.X86ITB(X86ITB(), "Instruction TLB")
         if build_env['FULL_SYSTEM']:
-            _localApic = X86LocalApic(pio_addr=0xa000000000000000)
+            _localApic = X86LocalApic(pio_addr=0x2000000000000000)
             interrupts = \
                 Param.X86LocalApic(_localApic, "Interrupt Controller")
     elif build_env['TARGET_ISA'] == 'mips':