Received: from eggs.gnu.org ([2001:4830:134:3::10]:46783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgcn7-00029j-JM for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:04:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgcn4-0002YD-As for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:04:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgcn4-0002Y5-53 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:04:42 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 9A632C0B64C2 for ; Mon, 28 Sep 2015 18:04:41 +0000 (UTC) Date: Mon, 28 Sep 2015 15:04:38 -0300 From: Eduardo Habkost Message-ID: <20150928180438.GI4130@thinpad.lan.raisama.net> References: <1443441618-18517-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443441618-18517-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH] target-i386: add ABM to Haswell* and Broadwell* CPU models List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Mon, Sep 28, 2015 at 02:00:18PM +0200, Paolo Bonzini wrote: > ABM is only implemented as a single instruction set by AMD; all AMD > processors support both instructions or neither. Intel considers POPCNT > as part of SSE4.2, and LZCNT as part of BMI1, but Intel also uses AMD's > ABM flag to indicate support for both POPCNT and LZCNT. It has to be > added to Haswell and Broadwell because Haswell, by adding LZCNT, has > completed the ABM. > > Tested with "qemu-kvm -cpu Haswell-noTSX,enforce" (and also with older > machine types) on an Haswell-EP machine. > > Signed-off-by: Paolo Bonzini Reviewed-by: Eduardo Habkost Applied to x86 tree, thanks! -- Eduardo