Received: from eggs.gnu.org ([208.118.235.92]:44727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZSGP-0007Ws-55 for qemu-devel@nongnu.org; Mon, 06 May 2013 16:44:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZSGA-0005CS-72 for qemu-devel@nongnu.org; Mon, 06 May 2013 16:44:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48366 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZSGA-0005CN-0c for qemu-devel@nongnu.org; Mon, 06 May 2013 16:43:46 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 6 May 2013 22:43:29 +0200 Message-Id: <1367873011-7402-10-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 09/11] target-i386: Change CPUID model of 486 to 8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , "H. Peter Anvin" This changes the model number of 486 to 8 (DX4) which matches the feature set presented, and actually has the CPUID instruction. This adds a compatibility property, to keep model=3D0 on pc-*-1.4 and old= er. Signed-off-by: H. Peter Anvin [AF: Add compat_props entry] Tested-by: Eduardo Habkost Reviewed-by: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- include/hw/i386/pc.h | 4 ++++ target-i386/cpu.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 41869e5..417afe4 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -242,6 +242,10 @@ int e820_add_entry(uint64_t, uint64_t, uint32_t); .driver =3D "pc-sysfw",\ .property =3D "rom_only",\ .value =3D stringify(0),\ + },{\ + .driver =3D "486-" TYPE_X86_CPU,\ + .property =3D "model",\ + .value =3D stringify(0),\ } =20 #endif diff --git a/target-i386/cpu.c b/target-i386/cpu.c index b438478..8e21c94 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -588,7 +588,7 @@ static x86_def_t builtin_x86_defs[] =3D { .level =3D 1, .vendor =3D CPUID_VENDOR_INTEL, .family =3D 4, - .model =3D 0, + .model =3D 8, .stepping =3D 0, .features[FEAT_1_EDX] =3D I486_FEATURES, --=20 1.8.1.4