x86 cpuid: enable clflush
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 15 Jan 2013 13:43:21 +0000 (07:43 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 15 Jan 2013 13:43:21 +0000 (07:43 -0600)
Note that clflush is only being enabled. It is not implemented
in actual. A warning is printed if the cpu encounters a clflush
instruction. We need to enable this instruction in cpuid since
JRE 1.7 tests for it.

src/arch/x86/cpuid.cc

index 0792d89736706cb6d949e87817a91cffca158bb0..864cdd7f42dc4d6336d4528a95df9bed75b85746 100644 (file)
@@ -150,8 +150,8 @@ namespace X86ISA {
                         stringToRegister(vendorString + 8));
                 break;
               case FamilyModelStepping:
-                result = CpuidResult(0x00020f51, 0000000405,
-                                     0xe7d3fbff, 0x00000001);
+                result = CpuidResult(0x00020f51, 0x00000805,
+                                     0xe7dbfbff, 0x00000001);
                 break;
               default:
                 warn("x86 cpuid: unimplemented function %u", funcNum);