From 11a551ae3ac179c6ce0e72dccfd4476fdf640798 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Sun, 22 Jul 2012 20:31:23 -0500 Subject: [PATCH] X86 CPUID: Return false if unknown processor family --- src/arch/x86/cpuid.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/arch/x86/cpuid.cc b/src/arch/x86/cpuid.cc index fa5e30698..0792d8973 100644 --- a/src/arch/x86/cpuid.cc +++ b/src/arch/x86/cpuid.cc @@ -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 -- 2.30.2