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

index 7fce43c1d319df3565b867bae36f9b984060b4a9..d52d5691525c857b6e92ccc6e7ecdffb2882d828 100644 (file)
@@ -219,7 +219,7 @@ void MiscRegFile::setReg(int miscReg,
         }
         switch (miscReg) {
           case MISCREG_APIC_ID:
-            panic("Local APIC ID register unimplemented.\n");
+            newVal = val & 0xFF;
             break;
           case MISCREG_APIC_VERSION:
             // The Local APIC Version register is read only.