Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjFDk-0003G6-2f for qemu-devel@nongnu.org; Fri, 26 Sep 2008 11:27:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjFDh-0003EU-BW for qemu-devel@nongnu.org; Fri, 26 Sep 2008 11:27:02 -0400 Received: from [199.232.76.173] (port=59094 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjFDh-0003ER-8x for qemu-devel@nongnu.org; Fri, 26 Sep 2008 11:27:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:43809) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KjFDg-00072Y-TW for qemu-devel@nongnu.org; Fri, 26 Sep 2008 11:27:01 -0400 Message-Id: <99D87C4A-DCD1-4B8C-AF88-8593BEB95C64@suse.de> From: Alexander Graf In-Reply-To: <20080926103739.GX2677@kernel.dk> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Qemu-devel] [5317] Core 2 Duo specification (Alexander Graf). Date: Fri, 26 Sep 2008 17:26:54 +0200 References: <20080926103739.GX2677@kernel.dk> 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 On 26.09.2008, at 12:37, Jens Axboe wrote: > On Thu, Sep 25 2008, Andrzej Zaborowski wrote: >> Revision: 5317 >> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5317 >> Author: balrog >> Date: 2008-09-25 18:11:30 +0000 (Thu, 25 Sep 2008) >> >> Log Message: >> ----------- >> Core 2 Duo specification (Alexander Graf). >> >> This patch adds a Core 2 Duo CPU to the available CPU types. The CPU >> definition tries to resemble a real CPU as good as possible, whilst >> not >> exposing features qemu does not implement. >> The patch also includes some minor additions that Core 2 Duo CPUs >> have: >> >> - New MSR: MSR_IA32_PERF_STATUS >> - CPUID up to level 5 (cache info and mwait) >> >> Signed-off-by: Alexander Graf >> >> Modified Paths: >> -------------- >> trunk/target-i386/cpu.h >> trunk/target-i386/helper.c >> trunk/target-i386/op_helper.c >> >> Modified: trunk/target-i386/cpu.h >> =================================================================== >> --- trunk/target-i386/cpu.h 2008-09-25 18:08:05 UTC (rev 5316) >> +++ trunk/target-i386/cpu.h 2008-09-25 18:11:30 UTC (rev 5317) >> @@ -242,6 +242,8 @@ >> #define MSR_MCG_STATUS 0x17a >> #define MSR_MCG_CTL 0x17b >> >> +#define MSR_IA32_PERF_STATUS 0x198 >> + >> #define MSR_PAT 0x277 >> >> #define MSR_EFER 0xc0000080 >> @@ -341,6 +343,9 @@ >> #define CPUID_VENDOR_AMD_2 0x69746e65 /* "enti" */ >> #define CPUID_VENDOR_AMD_3 0x444d4163 /* "cAMD" */ >> >> +#define CPUID_MWAIT_IBE (1 << 1) /* Interrupts can exit >> capability */ >> +#define CPUID_MWAIT_EMX (0 << 1) /* enumeration supported */ > > Ehm, should that not be > > #define CPUID_MWAIT_EMX (1 << 0) Ugh. Thanks for catching that! You're completely right. EMX is bit 0. Alex