From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Td1UJ-0006b0-HD for qemu-devel@nongnu.org; Mon, 26 Nov 2012 11:24:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Td1UD-0006RY-MB for qemu-devel@nongnu.org; Mon, 26 Nov 2012 11:24:51 -0500 Received: from cantor2.suse.de ([195.135.220.15]:54059 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Td1UD-0006QU-CM for qemu-devel@nongnu.org; Mon, 26 Nov 2012 11:24:45 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 26 Nov 2012 17:24:30 +0100 Message-Id: <1353947071-18478-2-git-send-email-afaerber@suse.de> In-Reply-To: <1353947071-18478-1-git-send-email-afaerber@suse.de> References: <1353947071-18478-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/2] target-i386/cpu: Add missing flags to Haswell CPU model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eduardo Habkost , anthony@codemonkey.ws, =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Eduardo Habkost When adding the Haswell CPU model, I intended to make it a superset of th= e features present on the SandyBridge model, but I have removed the SEP and RDTSCP features from the feature list by mistake. This patch adds the missing SEP and RDTSCP features (that are present on SandyBridge) to Haswell. Reported-by: Martin Kletzander Signed-off-by: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- target-i386/cpu.c | 5 +++-- 1 Datei ge=C3=A4ndert, 3 Zeilen hinzugef=C3=BCgt(+), 2 Zeilen entfernt(-= ) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 64c3491..4fdd4f7 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -657,7 +657,7 @@ static x86_def_t builtin_x86_defs[] =3D { .stepping =3D 1, .features =3D CPUID_SSE2 | CPUID_SSE | CPUID_FXSR | CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV | CPUI= D_MCA | - CPUID_PGE | CPUID_MTRR | CPUID_APIC | CPUID_CX8 | + CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC | CPUID_CX8= | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC | CPUID_PSE | CPUID_DE | CPUID_FP87, .ext_features =3D CPUID_EXT_AVX | CPUID_EXT_XSAVE | CPUID_EXT_AE= S | @@ -666,7 +666,8 @@ static x86_def_t builtin_x86_defs[] =3D { CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3 | CPUID_EXT_TSC_DEADLINE_TIMER | CPUID_EXT_FMA | CPUID_EXT_MO= VBE | CPUID_EXT_PCID, - .ext2_features =3D CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SY= SCALL, + .ext2_features =3D CPUID_EXT2_LM | CPUID_EXT2_RDTSCP | CPUID_EXT= 2_NX | + CPUID_EXT2_SYSCALL, .ext3_features =3D CPUID_EXT3_LAHF_LM, .cpuid_7_0_ebx_features =3D CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_E= BX_BMI1 | CPUID_7_0_EBX_HLE | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP = | --=20 1.7.10.4