changeset 41ebfed1dc89 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=41ebfed1dc89
description:
cpuid, x86: Enabling more features in CPUid
Adding more features in the CPUid with the purpose of supporting
running the
KvmCPU in SE mode.
diffstat:
src/arch/x86/cpuid.cc | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r d60a9bb99038 -r 41ebfed1dc89 src/arch/x86/cpuid.cc
--- a/src/arch/x86/cpuid.cc Sun Nov 23 18:00:47 2014 -0800
+++ b/src/arch/x86/cpuid.cc Sun Nov 23 18:01:08 2014 -0800
@@ -96,8 +96,15 @@
stringToRegister(vendorString + 8));
break;
case FamilyModelSteppingBrandFeatures:
+ /** Features Enabling
+ * rdx, enabling most of the features except:
+ * FXSR, FFXSR, Page1GB in EDX
+ *
+ * rcx, disabling most of the features except:
+ * SSE4A, XOP, FMA4 in ECX
+ */
result = CpuidResult(0x00020f51, 0x00000405,
- 0xe3d3fbff, 0x00000001);
+ 0xe3d3fbff, 0x00010840);
break;
case NameString1:
case NameString2:
@@ -153,8 +160,15 @@
stringToRegister(vendorString + 8));
break;
case FamilyModelStepping:
+ /** Features Enabling
+ * rdx, enabling most of the features except:
+ * HTT in EDX
+ *
+ * rcx, disabling most of the features except:
+ * SSE3, SSSE3, FMA, SSE41, XSAVE, AVX in ECX
+ */
result = CpuidResult(0x00020f51, 0x00000805,
- 0xe7dbfbff, 0x00000001);
+ 0xe7dbfbff, 0x14081201);
break;
default:
warn("x86 cpuid: unimplemented function %u", funcNum);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev