arch-x86: Adds rdtscp flag to cpuid for X86KvmCPU
The rdtscp instruction is supported by gem5, so the X86KvmCPU cpuid flags should be updated accordingly. Otherwise, KVM needlessly crashes upon executing rdtscp. Change-Id: If79017e60cbdf0757e929f07e56dba64322846bb Signed-off-by: Kevin Loughlin <kevlough@umich.edu> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41633 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -104,7 +104,7 @@ namespace X86ISA {
|
||||
break;
|
||||
case FamilyModelSteppingBrandFeatures:
|
||||
result = CpuidResult(0x00020f51, 0x00000405,
|
||||
0xe3d3fbff, 0x00000001);
|
||||
0xebd3fbff, 0x00000001);
|
||||
break;
|
||||
case NameString1:
|
||||
case NameString2:
|
||||
@@ -165,7 +165,7 @@ namespace X86ISA {
|
||||
break;
|
||||
case FamilyModelStepping:
|
||||
result = CpuidResult(0x00020f51, 0x00000805,
|
||||
0xe7dbfbff, 0x00000209);
|
||||
0xefdbfbff, 0x00000209);
|
||||
break;
|
||||
case ExtendedFeatures:
|
||||
result = CpuidResult(0x00000000, 0x01800000,
|
||||
|
||||
Reference in New Issue
Block a user