target/i386: Add Snowridge-v2 (no MPX) CPU model
Add new version of Snowridge CPU model that removes MPX feature. MPX support is being phased out by Intel. GCC has dropped it, Linux kernel and KVM are also going to do that in the future. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Message-Id: <20191012024748.127135-1-xiaoyao.li@intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
3265d8ae1d
commit
f8b061efaa
43
target-i386-Add-Snowridge-v2-no-MPX-CPU-model.patch
Normal file
43
target-i386-Add-Snowridge-v2-no-MPX-CPU-model.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From ce4bb30a650773833cd1e86afcaa30e47259085c Mon Sep 17 00:00:00 2001
|
||||
From: Xiaoyao Li <xiaoyao.li@intel.com>
|
||||
Date: Sat, 12 Oct 2019 10:47:48 +0800
|
||||
Subject: [PATCH] target/i386: Add Snowridge-v2 (no MPX) CPU model
|
||||
|
||||
Add new version of Snowridge CPU model that removes MPX feature.
|
||||
|
||||
MPX support is being phased out by Intel. GCC has dropped it, Linux kernel
|
||||
and KVM are also going to do that in the future.
|
||||
|
||||
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
||||
Message-Id: <20191012024748.127135-1-xiaoyao.li@intel.com>
|
||||
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
||||
---
|
||||
target/i386/cpu.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
||||
index d3742ef4ac..f09612f9da 100644
|
||||
--- a/target/i386/cpu.c
|
||||
+++ b/target/i386/cpu.c
|
||||
@@ -2668,6 +2668,18 @@ static X86CPUDefinition builtin_x86_defs[] = {
|
||||
CPUID_6_EAX_ARAT,
|
||||
.xlevel = 0x80000008,
|
||||
.model_id = "Intel Atom Processor (SnowRidge)",
|
||||
+ .versions = (X86CPUVersionDefinition[]) {
|
||||
+ { .version = 1 },
|
||||
+ {
|
||||
+ .version = 2,
|
||||
+ .props = (PropValue[]) {
|
||||
+ { "mpx", "off" },
|
||||
+ { "model-id", "Intel Atom Processor (Snowridge, no MPX)" },
|
||||
+ { /* end of list */ },
|
||||
+ },
|
||||
+ },
|
||||
+ { /* end of list */ },
|
||||
+ },
|
||||
},
|
||||
{
|
||||
.name = "KnightsMill",
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user