From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KivcR-0002gV-Ev for qemu-devel@nongnu.org; Thu, 25 Sep 2008 14:31:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KivcQ-0002g3-Ud for qemu-devel@nongnu.org; Thu, 25 Sep 2008 14:31:15 -0400 Received: from [199.232.76.173] (port=57085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KivcQ-0002fg-Os for qemu-devel@nongnu.org; Thu, 25 Sep 2008 14:31:14 -0400 Received: from savannah.gnu.org ([199.232.41.3]:45150 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KivcQ-0003M8-Lh for qemu-devel@nongnu.org; Thu, 25 Sep 2008 14:31:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KivcP-00067v-BI for qemu-devel@nongnu.org; Thu, 25 Sep 2008 18:31:13 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KivcP-00067p-1j for qemu-devel@nongnu.org; Thu, 25 Sep 2008 18:31:13 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Thu, 25 Sep 2008 18:31:13 +0000 Subject: [Qemu-devel] [5319] Add Atom (x86) cpu identification. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5319 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5319 Author: balrog Date: 2008-09-25 18:31:12 +0000 (Thu, 25 Sep 2008) Log Message: ----------- Add Atom (x86) cpu identification. Also add SSSE3 to Core2 features. Modified Paths: -------------- trunk/target-i386/helper.c Modified: trunk/target-i386/helper.c =================================================================== --- trunk/target-i386/helper.c 2008-09-25 18:16:18 UTC (rev 5318) +++ trunk/target-i386/helper.c 2008-09-25 18:31:12 UTC (rev 5319) @@ -174,11 +174,11 @@ .stepping = 11, /* the original CPU does have many more features that are * not implemented yet */ - .features = PPRO_FEATURES | + .features = PPRO_FEATURES | CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | CPUID_PSE36, - .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_MONITOR, - .ext2_features = (PPRO_FEATURES & 0x0183F3FF) | + .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_MONITOR | CPUID_EXT_SSSE3, + .ext2_features = (PPRO_FEATURES & 0x0183F3FF) | CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, .xlevel = 0x8000000A, .model_id = "Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz", @@ -246,6 +246,27 @@ /* XXX: put another string ? */ .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, + { + .name = "atom", + /* original is on level 10 */ + .level = 5, + .family = 6, + .model = 28, + .stepping = 2, + .features = PPRO_FEATURES | + CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | CPUID_VME, + /* Missing: CPUID_DTS | CPUID_ACPI | CPUID_SS | + * CPUID_HT | CPUID_TM | CPUID_PBE */ + /* Some CPUs got no CPUID_SEP */ + .ext_features = CPUID_EXT_MONITOR | + CPUID_EXT_SSE3 /* PNI */, CPUID_EXT_SSSE3, + /* Missing: CPUID_EXT_DSCPL | CPUID_EXT_EST | + * CPUID_EXT_TM2 | CPUID_EXT_XTPR */ + .ext2_features = (PPRO_FEATURES & 0x0183F3FF) | CPUID_EXT2_NX, + /* Missing: .ext3_features = CPUID_EXT3_LAHF_LM */ + .xlevel = 0x8000000A, + .model_id = "Intel(R) Atom(TM) CPU N270 @ 1.60GHz", + }, }; static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model)