X86: Make the apic task priority register work.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 12 Jun 2008 04:54:01 +0000 (00:54 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 12 Jun 2008 04:54:01 +0000 (00:54 -0400)
src/arch/x86/miscregfile.cc

index 46ee3a7db6d675bfd1a0b0b77b0c5cacfc8e77de..ee71842d2494635e6663ef0064448fed778c15a6 100644 (file)
@@ -141,9 +141,6 @@ MiscReg MiscRegFile::readReg(int miscReg, ThreadContext * tc)
                     "are unimplemented.\n");
         }
         switch (miscReg) {
-          case MISCREG_APIC_TASK_PRIORITY:
-            panic("Local APIC Task Priority register unimplemented.\n");
-            break;
           case MISCREG_APIC_ARBITRATION_PRIORITY:
             panic("Local APIC Arbitration Priority register unimplemented.\n");
             break;
@@ -221,7 +218,7 @@ void MiscRegFile::setReg(int miscReg,
             // The Local APIC Version register is read only.
             return;
           case MISCREG_APIC_TASK_PRIORITY:
-            panic("Local APIC Task Priority register unimplemented.\n");
+            newVal = val & 0xFF;
             break;
           case MISCREG_APIC_ARBITRATION_PRIORITY:
             panic("Local APIC Arbitration Priority register unimplemented.\n");