From patchwork Thu Sep 24 08:32:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alvise Rigo X-Patchwork-Id: 522168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 336CA1401F6 for ; Thu, 24 Sep 2015 18:34:09 +1000 (AEST) Received: from localhost ([::1]:53706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1yh-0003JO-3z for incoming@patchwork.ozlabs.org; Thu, 24 Sep 2015 04:34:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1u2-0004r9-RI for qemu-devel@nongnu.org; Thu, 24 Sep 2015 04:29:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf1ty-0007XO-Q4 for qemu-devel@nongnu.org; Thu, 24 Sep 2015 04:29:18 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:37199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1ty-0007XD-Kk for qemu-devel@nongnu.org; Thu, 24 Sep 2015 04:29:14 -0400 Received: by wicfx3 with SMTP id fx3so102110574wic.0 for ; Thu, 24 Sep 2015 01:29:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mo9prBnCSjRRwZVEw2cbihcAHZpYsU+pdmHV+DgU1vU=; b=Fv/DhxM/lJHtfmV38qP7TJ0bPOzk5qQAvV5dMZ8xaVYQaEUptPtqS0p7NPs9h/sDrR +HAhiFnINYxQMIQShiiNPKdKQxCUvkDgBarYxZQGszjKxKVmRXsiLkoOihkOegBLqoM/ SjczO7d+YXyfzxjTSKIqPe0Rkla1mudDGYRbi4PEfcqWyfkxpTyB81H4BwgN7ow6LteB OsKoGkzKvENOf4O1fXIraqsp4PYwC0tfjP3b4shWCb+W2utfxXxoctBgLxfBFOciV4+K dB65faWX5T6v2S469g5+l1HXfvegpdfGVIZPYcub84fIxrSMqWrz3gQr6mGVQCvin82q EVGg== X-Gm-Message-State: ALoCoQmXn1RbJ2VRpbaorYz68yIZO9oqvaTRQsLTKUvLZ/AyyA9d5s2s4DDSjUSqG73NHUPirIlr X-Received: by 10.194.121.66 with SMTP id li2mr21029282wjb.31.1443083354100; Thu, 24 Sep 2015 01:29:14 -0700 (PDT) Received: from linarch.home (LPuteaux-656-1-278-113.w80-15.abo.wanadoo.fr. [80.15.154.113]) by smtp.googlemail.com with ESMTPSA id iw8sm5495668wjb.5.2015.09.24.01.29.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Sep 2015 01:29:13 -0700 (PDT) From: Alvise Rigo To: qemu-devel@nongnu.org, mttcg@listserver.greensocs.com Date: Thu, 24 Sep 2015 10:32:45 +0200 Message-Id: <1443083566-10994-6-git-send-email-a.rigo@virtualopensystems.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443083566-10994-1-git-send-email-a.rigo@virtualopensystems.com> References: <1443083566-10994-1-git-send-email-a.rigo@virtualopensystems.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.175 Cc: alex.bennee@linaro.org, jani.kokkonen@huawei.com, tech@virtualopensystems.com, claudio.fontana@huawei.com, pbonzini@redhat.com Subject: [Qemu-devel] [RFC v5 5/6] configure: Use slow-path for atomic only when the softmmu is enabled 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 Use the new slow path for atomic instruction translation when the softmmu is enabled. Suggested-by: Jani Kokkonen Suggested-by: Claudio Fontana Signed-off-by: Alvise Rigo --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index cd219d8..5f72977 100755 --- a/configure +++ b/configure @@ -1391,6 +1391,13 @@ if test "$ARCH" = "unknown"; then fi fi +# Use the slow-path for atomic instructions if the softmmu is enabled +if test "$softmmu" = "yes"; then + tcg_use_ldst_excl="yes" +else + tcg_use_ldst_excl="no" +fi + # Consult white-list to determine whether to enable werror # by default. Only enable by default for git builds z_version=`cut -f3 -d. $source_path/VERSION` @@ -4542,6 +4549,7 @@ echo "Install blobs $blobs" echo "KVM support $kvm" echo "RDMA support $rdma" echo "TCG interpreter $tcg_interpreter" +echo "use ld/st excl $tcg_use_ldst_excl" echo "fdt support $fdt" echo "preadv support $preadv" echo "fdatasync $fdatasync" @@ -4920,6 +4928,9 @@ fi if test "$tcg_interpreter" = "yes" ; then echo "CONFIG_TCG_INTERPRETER=y" >> $config_host_mak fi +if test "$tcg_use_ldst_excl" = "yes" ; then + echo "CONFIG_TCG_USE_LDST_EXCL=y" >> $config_host_mak +fi if test "$fdatasync" = "yes" ; then echo "CONFIG_FDATASYNC=y" >> $config_host_mak fi