From b05731f92707c08fb645673b76749e4c6bab9120 Mon Sep 17 00:00:00 2001 From: Kevin Loughlin Date: Thu, 18 Feb 2021 14:52:23 -0500 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41633 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- src/arch/x86/cpuid.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/cpuid.cc b/src/arch/x86/cpuid.cc index 2a560f510a..ae1ba2efc7 100644 --- a/src/arch/x86/cpuid.cc +++ b/src/arch/x86/cpuid.cc @@ -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,