Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcFhV-0003LI-Bs for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:09:41 -0500 Received: from [199.232.76.173] (port=38647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcFhU-0003KX-No for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:09:40 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcFhO-0007D9-S4 for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:09:40 -0500 Received: from va3ehsobe004.messaging.microsoft.com ([216.32.180.14]:36422 helo=VA3EHSOBE004.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1NcFhO-0007Ch-39 for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:09:34 -0500 From: Andre Przywara Date: Tue, 2 Feb 2010 11:08:21 +0100 Message-ID: <1265105301-3455-14-git-send-email-andre.przywara@amd.com> In-Reply-To: <1265105301-3455-1-git-send-email-andre.przywara@amd.com> References: <1265105301-3455-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 13/13] cpuid: fix CPUID levels List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: john.cooper@redhat.com, Andre Przywara 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 65dcb23..725efe3 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -259,7 +259,7 @@ static x86_def_t 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, }, { @@ -297,7 +297,7 @@ static x86_def_t x86_defs[] = { }, { .name = "486", - .level = 0, + .level = 1, .family = 4, .model = 0, .stepping = 0, -- 1.6.4