ARM: FIx a bug preventing multiple cores booting a VExpress_EMM machine.
authorAli Saidi <Ali.Saidi@ARM.com>
Fri, 2 Mar 2012 14:18:19 +0000 (08:18 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Fri, 2 Mar 2012 14:18:19 +0000 (08:18 -0600)
New kernel code verifies that multi-processor extensions are available
before booting secondary CPUs.

src/arch/arm/isa.cc

index 9d76ca60e5a640649711e56855b9668230bd53dc..b8a0fe2823572e7d674e515c2de110c47cdb3237 100644 (file)
@@ -189,7 +189,9 @@ ISA::readMiscReg(int misc_reg, ThreadContext *tc)
 
     switch (misc_reg) {
       case MISCREG_MPIDR:
-        return tc->cpuId();
+
+        return 0x80000000 | // multiprocessor extensions available
+               tc->cpuId();
         break;
       case MISCREG_ID_MMFR0:
         return 0x03; // VMSAv7 support