From patchwork Tue May 31 18:39:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9145509 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 57EF560777 for ; Tue, 31 May 2016 18:49:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D51420072 for ; Tue, 31 May 2016 18:49:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4215F20700; Tue, 31 May 2016 18:49:08 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 CAD7A20072 for ; Tue, 31 May 2016 18:49:07 +0000 (UTC) Received: from localhost ([::1]:37872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oiw-0002Jy-Vt for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 May 2016 14:49:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oau-0003YB-58 for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7oam-0001bx-TJ for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:47 -0400 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]:36413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oam-0001bs-Mu for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:40 -0400 Received: by mail-yw0-x244.google.com with SMTP id l126so20064223ywe.3 for ; Tue, 31 May 2016 11:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZF29iA3dtqJsvcbaENzeB2EUmvfJKuGGRjIbrih7yME=; b=NXXCVA+jq6FSOWufTuRJ7k7TFe9R5lINhmyScrSAq6GoIpL2drMJonbbIj5y6ljtQA H0xh21KzIE1cxVeuzmvRzKqnTFXymWzfzyZIIeQ7zlv/mDn3zppqppiFNYMbVe52J8oB 7q8NQPoXqDjUf/7WTL7TBryJ2VZT1W0E2iO8tls+knK5MJ/G8OCTQQJtutK4cXs532ft KuDdFSozM8aZbXjJZRmtobwksi5yOp0TaBKH6WCORbwW/QvH2fJsURb6CCb0+WUxbmuQ QH97DeOZ26kRDSO7zPXb9QLSq8qY29LKkxArqLd9mn4eGyr9e350byxGgF7NfArHLMmR 3z1w== 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=ZF29iA3dtqJsvcbaENzeB2EUmvfJKuGGRjIbrih7yME=; b=HUv7SljX1xnpwSHqEEYJoQZWOo9RU98lJHw++y004NOBsqcQfWa023C1k9pWnsBLUG qAkYu+Z3LLDQYrmKtxiIJtc0P+qGhOb2NcLjEANn1r2360CpPwsJjOW55wHgxBucvwQn KjZh3WEF8b+1BSmOyuMEItIDmW1UTfIJAIjTL2nyVmCbtC990I96EiXlKUnDxk3kVLes AwrXGjK/ep1g9PlX4JLyfzDJsBgEB1geet5eyoVJo4bXnKco9Txp9QPR0dnE8DHWijdZ 7iUeUh61ah6S5hZEo16ZXSpe9t7C+g9krnbTMQ5n4qJD2LRy7OLgCOMIDDpFZRTvNC6M INpA== X-Gm-Message-State: ALyK8tJA2ZTXEEdeZUIQCrGBubSRlXxEDzPQ9nLgg6ZJxGFz1Wty8qnmlvTIcfBsuMoxDw== X-Received: by 10.13.255.70 with SMTP id p67mr23121006ywf.196.1464720040335; Tue, 31 May 2016 11:40:40 -0700 (PDT) Received: from evgadesktop.attlocal.net (108-232-152-155.lightspeed.tukrga.sbcglobal.net. [108.232.152.155]) by smtp.gmail.com with ESMTPSA id c62sm17150085ywf.12.2016.05.31.11.40.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 May 2016 11:40:39 -0700 (PDT) From: Pranith Kumar To: Richard Henderson , qemu-devel@nongnu.org (open list:All patches CC here) Date: Tue, 31 May 2016 14:39:27 -0400 Message-Id: <20160531183928.29406-13-bobby.prani@gmail.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160531183928.29406-1-bobby.prani@gmail.com> References: <20160531183928.29406-1-bobby.prani@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::244 Subject: [Qemu-devel] [RFC v2 PATCH 12/13] target-alpha: Generate fence op 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: serge.fdrv@linaro.org, alex.bennee@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Richard Henderson Signed-off-by: Pranith Kumar --- target-alpha/translate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 5b86992..17b68f5 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2329,11 +2329,12 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) break; case 0x4000: /* MB */ - /* No-op */ + tcg_gen_mb(TCG_MB_FULL); break; case 0x4400: /* WMB */ - /* No-op */ + /* TODO: Change this to write barrier */ + tcg_gen_mb(TCG_MB_FULL); break; case 0x8000: /* FETCH */