summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-07-22 20:31:23 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-07-22 20:31:23 -0500
commit11a551ae3ac179c6ce0e72dccfd4476fdf640798 (patch)
treedb0354fc885cc548023a6b91c957e3d0210547e1 /src
parent5e7f174b745e2c594499b1fd8fd2a0b46984d57d (diff)
downloadgem5-11a551ae3ac179c6ce0e72dccfd4476fdf640798.tar.xz
X86 CPUID: Return false if unknown processor family
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/cpuid.cc6
1 files changed, 6 insertions, 0 deletions
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