From patchwork Wed Sep 7 21:10:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9319955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4CC4860752 for ; Wed, 7 Sep 2016 21:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51D9F2942D for ; Wed, 7 Sep 2016 21:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46F2D29431; Wed, 7 Sep 2016 21:25:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id EFD362942D for ; Wed, 7 Sep 2016 21:25:31 +0000 (UTC) Received: from localhost ([::1]:43123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhkLb-0005yy-2m for patchwork-qemu-devel@patchwork.kernel.org; Wed, 07 Sep 2016 17:25:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhk8D-0000Xb-88 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 17:11:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhk8C-0002nX-9Y for qemu-devel@nongnu.org; Wed, 07 Sep 2016 17:11:41 -0400 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:36080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhk8C-0002nR-4g for qemu-devel@nongnu.org; Wed, 07 Sep 2016 17:11:40 -0400 Received: by mail-yw0-x241.google.com with SMTP id q4so1172017ywq.3 for ; Wed, 07 Sep 2016 14:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=o7M/QKJychUY9XF/Jth+mjc8tSx0thQDJhexqNlKvdY=; b=vwxrsMRqONwBLASXQHd2rYX3AFYg9xy5NlHp6Z6uBlzpBgQloNEl4B/7y2fqW+8d+7 51OMx87B+WHaOHQEcVzydXN88Rv1ogR2JFspCq4LasgLw96zHf8kNpX6OQ2FMVJU+buu +9FO1102A8w2kISVwvrdnqh7P90i22337ZGc6v3tNxXAPIOxtZv7lkbNRF1e9ZCZ7prq wZtcn2Yi46aLdtko0RduW+muKxoM3pezdRYaSz+P+3CLV5uboZhE1bgYAlPtGmV2hTm/ eU5C3NpkHbUG56aH1hdNnOMjzvCa/mkB5rfXCcxc3d4aYeixIlBb3+NL20m5KLQuC2ZZ dQGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=o7M/QKJychUY9XF/Jth+mjc8tSx0thQDJhexqNlKvdY=; b=AAoECKt17JgufhOaS2O4Mx2uwvzymNHogvviz+zd57np4+e80aILkFAl48RBIWJ91V tCMqxktKFJMcL2ha/M5LAvWiudTYTFwE2NXFn1rzs264vY9vZHFcCKhLnIZZgII6EZ8I ltM+HcExImDiRBYSbW3l5tm9hIqhM4QrgQ3NlX5HZT/W9iOyIYimxYQbJFHhOiTtC9r2 5q+pNA++MInHZYCmB8mu6JYYyL+Xpa9OBKVa8wX/T1b6xZp4s9Ny5EeQPjQRKaiF7LvK NGD7h9sE57LMt5Li3lRASrSVy1unGzP0Oc9M70ePBnutcDKycmtlONO6jTIzb3hDAkWV bBxA== X-Gm-Message-State: AE9vXwMtsJifAIrdVEgTKL0dMZZZd9pJNVWETkJvMQGpGd88e6DhAeZoExrGJus8pwtDWw== X-Received: by 10.129.61.13 with SMTP id k13mr38987170ywa.56.1473282699762; Wed, 07 Sep 2016 14:11:39 -0700 (PDT) Received: from bigtime.com (174-24-157-40.tukw.qwest.net. [174.24.157.40]) by smtp.gmail.com with ESMTPSA id 17sm15558301ywk.17.2016.09.07.14.11.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Sep 2016 14:11:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 7 Sep 2016 14:10:44 -0700 Message-Id: <1473282648-23487-15-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473282648-23487-1-git-send-email-rth@twiddle.net> References: <1473282648-23487-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::241 Subject: [Qemu-devel] [PULL 14/18] target-arm: Generate fences in ARMv7 frontend X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Pranith Kumar Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Pranith Kumar Signed-off-by: Pranith Kumar Message-Id: <20160714202026.9727-12-bobby.prani@gmail.com> Signed-off-by: Richard Henderson --- target-arm/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index bd5d5cb..693d4bc 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -8083,7 +8083,7 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn) case 4: /* dsb */ case 5: /* dmb */ ARCH(7); - /* We don't emulate caches so these are a no-op. */ + tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC); return; case 6: /* isb */ /* We need to break the TB after this insn to execute @@ -10432,7 +10432,7 @@ static int disas_thumb2_insn(CPUARMState *env, DisasContext *s, uint16_t insn_hw break; case 4: /* dsb */ case 5: /* dmb */ - /* These execute as NOPs. */ + tcg_gen_mb(TCG_MO_ALL | TCG_BAR_SC); break; case 6: /* isb */ /* We need to break the TB after this insn