From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZSGR-0007XA-5V for qemu-devel@nongnu.org; Mon, 06 May 2013 16:44:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZSGB-0005Eo-NX for qemu-devel@nongnu.org; Mon, 06 May 2013 16:44:03 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48377 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZSGB-0005Cy-A7 for qemu-devel@nongnu.org; Mon, 06 May 2013 16:43:47 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 6 May 2013 22:43:31 +0200 Message-Id: <1367873011-7402-12-git-send-email-afaerber@suse.de> In-Reply-To: <1367873011-7402-1-git-send-email-afaerber@suse.de> References: <1367873011-7402-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] [PULL 11/11] target-i386: n270 can MOVBE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Borislav Petkov , Eduardo Habkost , =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Borislav Petkov The Atom core (cpu name "n270" in QEMU speak) supports MOVBE. This is needed when booting 3.8 and later linux kernels built with the MATOM target because we require MOVBE in order to boot properly now. Signed-off-by: Borislav Petkov [ehabkost: added compat code to disable MOVBE on pc-*-1.4 and older] Signed-off-by: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + target-i386/cpu.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index fe52e5f..f7c80ad 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -250,6 +250,7 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args= ) { pc_sysfw_flash_vs_rom_bug_compatible =3D true; has_pvpanic =3D false; + x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); pc_init_pci(args); } =20 diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 52511e2..4160e2b 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -212,6 +212,7 @@ static void pc_q35_init_1_4(QEMUMachineInitArgs *args= ) { pc_sysfw_flash_vs_rom_bug_compatible =3D true; has_pvpanic =3D false; + x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); pc_q35_init(args); } =20 diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 8198a1b..1a501d9 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -657,7 +657,8 @@ static x86_def_t builtin_x86_defs[] =3D { /* Some CPUs got no CPUID_SEP */ .features[FEAT_1_ECX] =3D CPUID_EXT_SSE3 | CPUID_EXT_MONITOR | CPUID_EXT_SSSE3 | - CPUID_EXT_DSCPL | CPUID_EXT_EST | CPUID_EXT_TM2 | CPUID_EXT_= XTPR, + CPUID_EXT_DSCPL | CPUID_EXT_EST | CPUID_EXT_TM2 | CPUID_EXT_= XTPR | + CPUID_EXT_MOVBE, .features[FEAT_8000_0001_EDX] =3D (PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) | CPUID_EXT2_NX, --=20 1.8.1.4