changeset 2b660729f136 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=2b660729f136
description:
X86: Only use %eax to select a function and look like we support sse2.
diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
src/arch/x86/cpuid.cc | 4 ++--
src/arch/x86/isa/decoder/two_byte_opcodes.isa | 2 +-
diffs (33 lines):
diff -r 47a52383002b -r 2b660729f136 src/arch/x86/cpuid.cc
--- a/src/arch/x86/cpuid.cc Sun Apr 19 03:08:40 2009 -0700
+++ b/src/arch/x86/cpuid.cc Sun Apr 19 03:11:24 2009 -0700
@@ -89,7 +89,7 @@
case VendorAndLargestExtFunc:
assert(vendorStringSize >= 12);
result = CpuidResult(
- NumExtendedCpuidFuncs - 1,
+ 0x80000000 + NumExtendedCpuidFuncs - 1,
stringToRegister(vendorString),
stringToRegister(vendorString + 4),
stringToRegister(vendorString + 8));
@@ -149,7 +149,7 @@
break;
case FamilyModelStepping:
result = CpuidResult(0x00020f51, 0000000405,
- 0xe3d3fbff, 0x00000001);
+ 0xe7d3fbff, 0x00000001);
break;
default:
return false;
diff -r 47a52383002b -r 2b660729f136
src/arch/x86/isa/decoder/two_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa Sun Apr 19 03:08:40
2009 -0700
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa Sun Apr 19 03:11:24
2009 -0700
@@ -813,7 +813,7 @@
0x1: pop_fs();
0x2: CPUIDInst::CPUID({{
CpuidResult result;
- success = doCpuid(xc->tcBase(), Rax, result);
+ success = doCpuid(xc->tcBase(), bits(Rax, 31, 0), result);
Rax = result.rax;
Rbx = result.rbx;
Rcx = result.rcx;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev