X86: Only use %eax to select a function and look like we support sse2.

This commit is contained in:
Gabe Black 2009-04-19 03:11:24 -07:00
parent 27e54982b4
commit eba640c963
2 changed files with 3 additions and 3 deletions

View file

@ -89,7 +89,7 @@ namespace X86ISA {
case VendorAndLargestExtFunc:
assert(vendorStringSize >= 12);
result = CpuidResult(
NumExtendedCpuidFuncs - 1,
0x80000000 + NumExtendedCpuidFuncs - 1,
stringToRegister(vendorString),
stringToRegister(vendorString + 4),
stringToRegister(vendorString + 8));
@ -149,7 +149,7 @@ namespace X86ISA {
break;
case FamilyModelStepping:
result = CpuidResult(0x00020f51, 0000000405,
0xe3d3fbff, 0x00000001);
0xe7d3fbff, 0x00000001);
break;
default:
return false;

View file

@ -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;