x86: cpuid: add family to warn() message
authorBjoern A. Zeeb <baz21@cam.ac.uk>
Mon, 16 Nov 2015 10:58:39 +0000 (04:58 -0600)
committerBjoern A. Zeeb <baz21@cam.ac.uk>
Mon, 16 Nov 2015 10:58:39 +0000 (04:58 -0600)
doCpuid() has to identical warn messages about unimplemented functions.  Add
the family to the log message to make them distinguishable.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>

src/arch/x86/cpuid.cc

index bcafa8d403fcad885bb93e800a84ae15a46a314c..e15dcd33166dd0445b85205f95f1a4e2bcc95af1 100644 (file)
@@ -138,7 +138,8 @@ namespace X86ISA {
               case TLB1GBPageInfo:
               case PerformanceInfo:*/
               default:
-                warn("x86 cpuid: unimplemented function %u", funcNum);
+                warn("x86 cpuid family 0x8000: unimplemented function %u",
+                    funcNum);
                 return false;
             }
         } else if(family == 0x0000) {
@@ -157,7 +158,8 @@ namespace X86ISA {
                                      0xe7dbfbff, 0x04000209);
                 break;
               default:
-                warn("x86 cpuid: unimplemented function %u", funcNum);
+                warn("x86 cpuid family 0x0000: unimplemented function %u",
+                    funcNum);
                 return false;
             }
         } else {