From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Pranith Kumar Date: Tue, 31 May 2016 14:39:27 -0400 Message-Id: <20160531183928.29406-13-bobby.prani@gmail.com> In-Reply-To: <20160531183928.29406-1-bobby.prani@gmail.com> References: <20160531183928.29406-1-bobby.prani@gmail.com> Subject: [Qemu-devel] [RFC v2 PATCH 12/13] target-alpha: Generate fence op List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , "open list:All patches CC here" Cc: alex.bennee@linaro.org, serge.fdrv@linaro.org 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 */ -- 2.8.3