Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npibq-0005XH-5H for qemu-devel@nongnu.org; Thu, 11 Mar 2010 08:39:30 -0500 Received: from [199.232.76.173] (port=45887 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npibp-0005Wr-Bh for qemu-devel@nongnu.org; Thu, 11 Mar 2010 08:39:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Npibn-0001RP-CE for qemu-devel@nongnu.org; Thu, 11 Mar 2010 08:39:29 -0500 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13]:9078 helo=TX2EHSOBE006.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Npibm-0001Qt-IH for qemu-devel@nongnu.org; Thu, 11 Mar 2010 08:39:27 -0500 From: Andre Przywara Date: Thu, 11 Mar 2010 14:39:06 +0100 Message-ID: <1268314747-11111-13-git-send-email-andre.przywara@amd.com> In-Reply-To: <1268314747-11111-1-git-send-email-andre.przywara@amd.com> References: <1268314747-11111-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 12/13] x86/cpuid: fix CPUID levels List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Andre Przywara , qemu-devel@nongnu.org, aurelien@aurel32.net Bump up the xlevel number for qemu32 to allow parsing of the processor name string for this model. Similiarly the 486 processor should have at least the feature bit leaf enabled. Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index e3c36be..076f6cc 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -356,7 +356,7 @@ static x86_def_t builtin_x86_defs[] = { .stepping = 3, .features = PPRO_FEATURES, .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_POPCNT, - .xlevel = 0, + .xlevel = 0x80000004, .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, { @@ -394,7 +394,7 @@ static x86_def_t builtin_x86_defs[] = { }, { .name = "486", - .level = 0, + .level = 1, .family = 4, .model = 0, .stepping = 0, -- 1.6.4