Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mobzf-0007qe-Sg for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mobza-0007o4-5P for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:15 -0400 Received: from [199.232.76.173] (port=38456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mobza-0007o1-2P for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:10 -0400 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:17836 helo=VA3EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MobzZ-0003KT-K3 for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:09 -0400 Received: from mail80-va3 (localhost.localdomain [127.0.0.1]) by mail80-va3-R.bigfish.com (Postfix) with ESMTP id 5CB898081E8 for ; Fri, 18 Sep 2009 11:51:08 +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 mail80-va3.bigfish.com (Postfix) with ESMTP id 9D26B1368050 for ; Fri, 18 Sep 2009 11:51:06 +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 n8IBp0kb032267 for ; Fri, 18 Sep 2009 04:51:03 -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 2726D19A014C for ; Fri, 18 Sep 2009 04:50:58 -0700 (PDT) From: Andre Przywara Date: Fri, 18 Sep 2009 13:48:00 +0200 Message-ID: <1253274494-13244-8-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 07/21] cpuid: add missing CPUID feature flag names List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andre Przywara some CPUID feature flags had no string value, so they could not be switched on or off from the command line. Add names for the missing ones and obey the 80 characters limit on the way. Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 28 ++++++++++++++++++---------- 1 files changed, 18 insertions(+), 10 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index ec88e20..0d6e37a 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -49,24 +49,32 @@ static const char *get_opt_name(char *buf, int buf_size, static const char *feature_name[] = { "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", "cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov", - "pat", "pse36", "pn" /* Intel psn */, "clflush" /* Intel clfsh */, NULL, "ds" /* Intel dts */, "acpi", "mmx", + "pat", "pse36", "pn" /* Intel psn */, "clflush" /* Intel clfsh */, + NULL, "ds" /* Intel dts */, "acpi", "mmx", "fxsr", "sse", "sse2", "ss", "ht" /* Intel htt */, "tm", "ia64", "pbe", }; static const char *ext_feature_name[] = { - "pni" /* Intel,AMD sse3 */, NULL, NULL, "monitor", "ds_cpl", "vmx", NULL /* Linux smx */, "est", - "tm2", "ssse3", "cid", NULL, NULL, "cx16", "xtpr", NULL, - NULL, NULL, "dca", NULL, NULL, NULL, NULL, "popcnt", - NULL, NULL, NULL, NULL, NULL, NULL, NULL, "hypervisor", + "pni" /* Intel,AMD sse3 */, NULL, "dtes64", "monitor", + "ds_cpl", "vmx", "smx", "est", + "tm2", "ssse3", "cid", NULL, NULL /* FMA */, "cx16", "xtpr", "pdcm", + NULL, NULL, "dca", "sse4_1", "sse4_2", "x2apic", "movbe", "popcnt", + NULL, NULL /* AES */, "xsave", "osxsave", + NULL /* AVX */, NULL, NULL, "hypervisor", }; static const char *ext2_feature_name[] = { "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", - "cx8" /* AMD CMPXCHG8B */, "apic", NULL, "syscall", "mtrr", "pge", "mca", "cmov", - "pat", "pse36", NULL, NULL /* Linux mp */, "nx" /* Intel xd */, NULL, "mmxext", "mmx", - "fxsr", "fxsr_opt" /* AMD ffxsr */, "pdpe1gb" /* AMD Page1GB */, "rdtscp", NULL, "lm" /* Intel 64 */, "3dnowext", "3dnow", + "cx8" /* AMD CMPXCHG8B */, "apic", NULL, "syscall", + "mtrr", "pge", "mca", "cmov", + "pat", "pse36", NULL, NULL /* Linux mp */, + "nx" /* Intel xd */, NULL, "mmxext", "mmx", + "fxsr", "fxsr_opt" /* AMD ffxsr */, "pdpe1gb" /* AMD Page1GB */, "rdtscp", + NULL, "lm" /* Intel 64 */, "3dnowext", "3dnow", }; static const char *ext3_feature_name[] = { - "lahf_lm" /* AMD LahfSahf */, "cmp_legacy", "svm", "extapic" /* AMD ExtApicSpace */, "cr8legacy" /* AMD AltMovCr8 */, "abm", "sse4a", "misalignsse", - "3dnowprefetch", "osvw", NULL /* Linux ibs */, NULL, "skinit", "wdt", NULL, NULL, + "lahf_lm" /* AMD LahfSahf */, "cmp_legacy", + "svm", "extapic" /* AMD ExtApicSpace */, + "cr8legacy" /* AMD AltMovCr8 */, "abm", "sse4a", "misalignsse", + "3dnowprefetch", "osvw", "ibs", "sse5", "skinit", "wdt", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }; -- 1.6.1.3