From patchwork Fri Apr 26 19:44:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Lock X-Patchwork-Id: 240030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 994F32C0115 for ; Sat, 27 Apr 2013 05:46:24 +1000 (EST) Received: from localhost ([::1]:52206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVob8-0003ap-TG for incoming@patchwork.ozlabs.org; Fri, 26 Apr 2013 15:46:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoZj-0001uG-Nk for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVoZf-0007BT-IU for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:55 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:54579 helo=smtp.kn-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoZf-0007BH-CM for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:44:51 -0400 Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 689F61E007AF; Fri, 26 Apr 2013 21:44:50 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.5/8.14.4) with ESMTP id r3QJi3fC085033; Fri, 26 Apr 2013 21:44:03 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.5/8.14.3/Submit) id r3QJi3mb085032; Fri, 26 Apr 2013 21:44:03 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 26 Apr 2013 21:44:03 +0200 To: Juergen Lock Message-ID: <20130426194403.GA84862@triton8.kn-bremen.de> References: <20130426191141.GA81647@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130426191141.GA81647@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 78.46.108.116 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] tcg/i386: Workaround for clang not defining bit_CMOV X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I guess I should have put [PATCH] in the Subject, sorry. On Fri, Apr 26, 2013 at 09:11:41PM +0200, Juergen Lock wrote: This fixes the build with clang on 32 bit x86. Signed-off-by: Juergen Lock --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -104,6 +104,10 @@ static const int tcg_target_call_oarg_re # define have_cmov 1 #elif defined(CONFIG_CPUID_H) #include +#ifndef bit_CMOV +/* clang's doesn't define bit_* */ +#define bit_CMOV (1 << 15) +#endif static bool have_cmov; #else # define have_cmov 0