Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mobzp-0007uO-QE for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mobzj-0007rG-PR for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:24 -0400 Received: from [199.232.76.173] (port=38466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mobzi-0007rD-Hz for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:18 -0400 Received: from va3ehsobe001.messaging.microsoft.com ([216.32.180.11]:11852 helo=VA3EHSOBE001.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Mobzi-0003MJ-3C for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:18 -0400 Received: from mail180-va3 (localhost.localdomain [127.0.0.1]) by mail180-va3-R.bigfish.com (Postfix) with ESMTP id 6FE36EB00E2 for ; Fri, 18 Sep 2009 11:51:17 +0000 (UTC) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail180-va3.bigfish.com (Postfix) with ESMTP id E022632805A for ; Fri, 18 Sep 2009 11:51:15 +0000 (UTC) Received: from svlb1twp01.amd.com ([139.95.250.34]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n8IBp9P9032303 for ; Fri, 18 Sep 2009 04:51:12 -0700 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp01.amd.com (Tumbleweed MailGate 3.7.0) with ESMTP id 24C3919A0150 for ; Fri, 18 Sep 2009 04:51:08 -0700 (PDT) From: Andre Przywara Date: Fri, 18 Sep 2009 13:48:09 +0200 Message-ID: <1253274494-13244-17-git-send-email-andre.przywara@amd.com> In-Reply-To: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> References: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 16/21] cpuid: Update qemu64/32 CPU models List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andre Przywara Since we now have a real TCG feature set, use it to describe the artificial qemu CPUs (both 64 and 32-bit). If new features are added to TCG, the capability of qemu64/32 will automatically be adjusted. Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index bae90e7..1ad21d3 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -155,15 +155,12 @@ static x86_def_t x86_defs[] = { .family = 6, .model = 2, .stepping = 3, - .features = PPRO_FEATURES | - /* these features are needed for Win64 and aren't fully implemented */ - CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | - /* this feature is needed for Solaris and isn't fully implemented */ - CPUID_PSE36, - .ext_features = CPUID_EXT_SSE3, - .ext2_features = (PPRO_FEATURES & EXT2_FEATURE_MASK) | - CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, - .ext3_features = CPUID_EXT3_SVM, + .features = TCG_FEATURES, + .ext_features = TCG_EXT_FEATURES, + /* 3DNow! is deprecated, so leave it out of the default feature set */ + .ext2_features = (TCG_EXT2_FEATURES | EXT2_FEATURES_64) & + ~(CPUID_EXT2_3DNOW | CPUID_EXT2_3DNOWEXT), + .ext3_features = TCG_EXT3_FEATURES, .xlevel = 0x8000000A, .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, @@ -249,9 +246,13 @@ static x86_def_t x86_defs[] = { .family = 6, .model = 3, .stepping = 3, - .features = PPRO_FEATURES, - .ext_features = CPUID_EXT_SSE3, - .xlevel = 0, + .features = TCG_FEATURES, + .ext_features = TCG_EXT_FEATURES, + /* 3DNow! is deprecated, so leave it out of the default feature set */ + .ext2_features = (TCG_EXT2_FEATURES) & + ~(CPUID_EXT2_3DNOW | CPUID_EXT2_3DNOWEXT), + .ext3_features = TCG_EXT3_FEATURES, + .xlevel = 0x80000001, .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, { -- 1.6.1.3