projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e7f174
)
X86 CPUID: Return false if unknown processor family
author
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 23 Jul 2012 01:31:23 +0000
(20:31 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Mon, 23 Jul 2012 01:31:23 +0000
(20:31 -0500)
src/arch/x86/cpuid.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/cpuid.cc
b/src/arch/x86/cpuid.cc
index fa5e30698bf5735a3eb571b4c9d95b908ab9e3c5..0792d89736706cb6d949e87817a91cffca158bb0 100644
(file)
--- 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