From patchwork Fri Jan 29 09:32:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alvise rigo X-Patchwork-Id: 8161061 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7C3C9BEEE5 for ; Fri, 29 Jan 2016 09:38:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5E0020361 for ; Fri, 29 Jan 2016 09:38:33 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B6632014A for ; Fri, 29 Jan 2016 09:38:33 +0000 (UTC) Received: from localhost ([::1]:60752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP5Vg-0000uj-AQ for patchwork-qemu-devel@patchwork.kernel.org; Fri, 29 Jan 2016 04:38:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP5Qc-0007nV-Dg for qemu-devel@nongnu.org; Fri, 29 Jan 2016 04:33:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aP5QY-0000YN-6C for qemu-devel@nongnu.org; Fri, 29 Jan 2016 04:33:18 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP5QY-0000YJ-0M for qemu-devel@nongnu.org; Fri, 29 Jan 2016 04:33:14 -0500 Received: by mail-wm0-x22f.google.com with SMTP id p63so59739161wmp.1 for ; Fri, 29 Jan 2016 01:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtualopensystems-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2ALaxR2Zkk6KfPtThYZTPJ13YYPu9QCqUJZTblZF0gY=; b=anHgnDahKzTkehE2QVxCRkaojqrgcIKMe3wwiW9EDdciIRJ9quRLOL8BeXPsk91R+o m2E5L/YpsY7yCo40qA7IUhlBqRH6cdy47JBY849blwer4Lxady+KTBD8fXjJ20v+2Yzk e3lY5zauEESaS15FFvLDsE1wyFBG8pYRfamtmdDypUv1b0ppRYXS6Fy3jo4+Dss5s7zJ EXYIrO14evc3+IoNpGsDSlXoTjHUF8uyjGjRsExHCMJ0MMBnaZntv4fHlEHguFRiA5bR e1o5jHsp74PgmAE7NWxARpSbo3cwAZ7hb6WZBV4gJ7Rf4/+8uYTUVQgqF7oG0jNomXrn osKA== 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=2ALaxR2Zkk6KfPtThYZTPJ13YYPu9QCqUJZTblZF0gY=; b=k9o6uu+u3aTxwCXEzUPkhpG2P78ci0PJMpAWwgQvccfotrDcWh42QexTg0VRQwS6ex WSiY79vYC2VR3g2QxvGAj+056i1th1Xk+9Ivt69zCD2TwJq8tLa5yJyMjFpbJrlfV9OZ 0Nu6POLgfvbL0B0wFGDz3uf7W2cUDHR3T9qWFb+ZcymQblu1yaadpyb4UoET9Tbv+Zmv feofbMBwCQkc5UCMAVZz2DGlvizJJ43IcuI2ZthTgOmyMC0U2yVG21vtNV/cTMi+gSiX 9mrp+9GcaFdFOR9ey6e5TA4jY3ZqAXgTgofmReV+SWWOufhhzBSFNjz1USfs7gSSuYpl sKRw== X-Gm-Message-State: AG10YOTCDDD/hXFDRya9Y2L8ZBCi3376FZQ4i2UPwwMhYdmzP+qI2q/0o2kiAB8YTS6ntg== X-Received: by 10.28.128.215 with SMTP id b206mr8445781wmd.52.1454059993389; Fri, 29 Jan 2016 01:33:13 -0800 (PST) Received: from localhost.localdomain (LPuteaux-656-1-278-113.w80-15.abo.wanadoo.fr. [80.15.154.113]) by smtp.googlemail.com with ESMTPSA id o7sm14765451wjf.45.2016.01.29.01.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jan 2016 01:33:12 -0800 (PST) From: Alvise Rigo To: qemu-devel@nongnu.org, mttcg@listserver.greensocs.com Date: Fri, 29 Jan 2016 10:32:41 +0100 Message-Id: <1454059965-23402-13-git-send-email-a.rigo@virtualopensystems.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454059965-23402-1-git-send-email-a.rigo@virtualopensystems.com> References: <1454059965-23402-1-git-send-email-a.rigo@virtualopensystems.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22f Cc: claudio.fontana@huawei.com, pbonzini@redhat.com, jani.kokkonen@huawei.com, tech@virtualopensystems.com, alex.bennee@linaro.org, rth@twiddle.net Subject: [Qemu-devel] [RFC v7 12/16] 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the new slow path for atomic instruction translation when the softmmu is enabled. At the moment only arm and aarch64 use the new LL/SC backend. It is possible to disable such backed with --disable-arm-llsc-backend. Suggested-by: Jani Kokkonen Suggested-by: Claudio Fontana Signed-off-by: Alvise Rigo --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure b/configure index 44ac9ab..915efcc 100755 --- a/configure +++ b/configure @@ -294,6 +294,7 @@ solaris="no" profiler="no" cocoa="no" softmmu="yes" +arm_tcg_use_llsc="yes" linux_user="no" bsd_user="no" aix="no" @@ -880,6 +881,10 @@ for opt do ;; --disable-debug-tcg) debug_tcg="no" ;; + --enable-arm-llsc-backend) arm_tcg_use_llsc="yes" + ;; + --disable-arm-llsc-backend) arm_tcg_use_llsc="no" + ;; --enable-debug) # Enable debugging options that aren't excessively noisy debug_tcg="yes" @@ -4751,6 +4756,7 @@ echo "host CPU $cpu" echo "host big endian $bigendian" echo "target list $target_list" echo "tcg debug enabled $debug_tcg" +echo "arm use llsc backend" $arm_tcg_use_llsc echo "gprof enabled $gprof" echo "sparse enabled $sparse" echo "strip binaries $strip_opt" @@ -4806,6 +4812,7 @@ echo "Install blobs $blobs" echo "KVM support $kvm" echo "RDMA support $rdma" echo "TCG interpreter $tcg_interpreter" +echo "use ld/st excl $softmmu" echo "fdt support $fdt" echo "preadv support $preadv" echo "fdatasync $fdatasync" @@ -5863,6 +5870,13 @@ fi echo "LDFLAGS+=$ldflags" >> $config_target_mak echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak +# Use tcg LL/SC tcg backend for exclusive instruction is arm/aarch64 +# softmmus targets +if test "$arm_tcg_use_llsc" = "yes" ; then + if test "$target" = "arm-softmmu" ; then + echo "CONFIG_ARM_USE_LDST_EXCL=y" >> $config_target_mak + fi +fi done # for target in $targets if [ "$pixman" = "internal" ]; then