From: Nilay Vaish Date: Mon, 23 Jul 2012 01:31:23 +0000 (-0500) Subject: X86 CPUID: Return false if unknown processor family X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11a551ae3ac179c6ce0e72dccfd4476fdf640798;p=gem5.git X86 CPUID: Return false if unknown processor family --- 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