Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUg9h-0006QD-G4 for qemu-devel@nongnu.org; Mon, 10 Sep 2007 06:06:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUg9g-0006Q1-Fh for qemu-devel@nongnu.org; Mon, 10 Sep 2007 06:06:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUg9g-0006Py-9S for qemu-devel@nongnu.org; Mon, 10 Sep 2007 06:06:08 -0400 Received: from il.qumranet.com ([82.166.9.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUg9f-0000QD-PT for qemu-devel@nongnu.org; Mon, 10 Sep 2007 06:06:08 -0400 Received: from localhost (karma.qumranet.com [10.0.50.239]) by il.qumranet.com (Postfix) with ESMTP id B0168250D41 for ; Mon, 10 Sep 2007 13:06:05 +0300 (IDT) Date: Mon, 10 Sep 2007 13:02:15 +0300 From: Dan Kenigsberg Subject: Re: [Qemu-devel] question regarding odd CPU feature assignement Message-ID: <20070910100214.GA29896@karma.qumranet.com> References: <20070910054222.GA26291@karma.qumranet.com> <5b31733c0709100155x6438a742pe86029713c03d909@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b31733c0709100155x6438a742pe86029713c03d909@mail.gmail.com> 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 Thanks! On Mon, Sep 10, 2007 at 10:55:55AM +0200, Filip Navara wrote: > It's not a typo. The short story is that there are two CPUID feature > registers - 1/EDX and 0x80000001/EDX - that differ slightly. The later one > was first used by AMD CPUs and mostly enhanced by adding new features to > processors from the said company (3DNow and such). The first one was > introduced by Intel and on AMD processor it's only used for compatibility, > but not for AMD-specific extensions. You can learn more by looking at the > tables on http://www.sandpile.org/ia32/cpuid.htm. > > Best regards, > Filip Navara > > On 9/10/07, Dan Kenigsberg wrote: > > > > Line 132 of qemu/target-i386/helper2.c has > > > > /* currently not enabled for std i386 because not fully tested */ > > env->cpuid_ext2_features = (env->cpuid_features & 0x0183F3FF); > > > > Which smells like a typo: I see no reason to make cpuid_ext2_features a > > masked version of cpuid_features. > > > > Would someone care to elaborate? > > > > Thanks, > > > > Dan. > > > > > >