target/i386: Add Snowridge-v2 (no MPX) CPU model
authorXiaoyao Li <xiaoyao.li@intel.com>
Sat, 12 Oct 2019 02:47:48 +0000 (10:47 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Oct 2019 21:34:44 +0000 (18:34 -0300)
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

index b821132b6abbd4e3cb7cd81e0f30b5998ae24349..47200b40c1e1a2295d3b9a6e0a553bb4b0d3a030 100644 (file)
@@ -2793,6 +2793,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",