From patchwork Fri Apr 26 19:11:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Lock X-Patchwork-Id: 240019 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 3E2F22C00EA for ; Sat, 27 Apr 2013 05:26:03 +1000 (EST) Received: from localhost ([::1]:58075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoHR-00065x-E2 for incoming@patchwork.ozlabs.org; Fri, 26 Apr 2013 15:26:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoGx-00064W-DF for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVoGu-0001EV-VH for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:25:31 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:51950 helo=smtp.kn-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVoGu-0001EJ-PY for qemu-devel@nongnu.org; Fri, 26 Apr 2013 15:25:28 -0400 Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 5B30A1E007AD; Fri, 26 Apr 2013 21:25:27 +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 r3QJBg1e081813 for ; Fri, 26 Apr 2013 21:11:42 +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 r3QJBf0U081812 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 21:11:41 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 26 Apr 2013 21:11:41 +0200 To: qemu-devel@nongnu.org Message-ID: <20130426191141.GA81647@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline 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 Subject: [Qemu-devel] 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 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