X86 CPUID: Return false if unknown processor family
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 23 Jul 2012 01:31:23 +0000 (20:31 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 23 Jul 2012 01:31:23 +0000 (20:31 -0500)
src/arch/x86/cpuid.cc

index fa5e30698bf5735a3eb571b4c9d95b908ab9e3c5..0792d89736706cb6d949e87817a91cffca158bb0 100644 (file)
@@ -135,6 +135,7 @@ namespace X86ISA {
               case TLB1GBPageInfo:
               case PerformanceInfo:*/
               default:
+                warn("x86 cpuid: unimplemented function %u", funcNum);
                 return false;
             }
         } else if(family == 0x0000) {
@@ -153,9 +154,14 @@ namespace X86ISA {
                                      0xe7d3fbff, 0x00000001);
                 break;
               default:
+                warn("x86 cpuid: unimplemented function %u", funcNum);
                 return false;
             }
+        } else {
+            warn("x86 cpuid: unknown family %#x", family);
+            return false;
         }
+
         return true;
     }
 } // namespace X86ISA