From patchwork Tue May 31 18:39:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9145487 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 44BA060777 for ; Tue, 31 May 2016 18:45:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3996C200F5 for ; Tue, 31 May 2016 18:45:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E25320855; Tue, 31 May 2016 18:45:10 +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 824EB200F5 for ; Tue, 31 May 2016 18:45:09 +0000 (UTC) Received: from localhost ([::1]:37852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7of6-0007RV-MQ for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 May 2016 14:45:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oai-0003OM-K5 for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7oag-0001ZR-DW for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:35 -0400 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]:33680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oag-0001ZF-2L for qemu-devel@nongnu.org; Tue, 31 May 2016 14:40:34 -0400 Received: by mail-yw0-x244.google.com with SMTP id y6so20073963ywe.0 for ; Tue, 31 May 2016 11:40:33 -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=dK/cndksPVrrZ4ZJxA4OkRMBiI0wxYMyxRqcMfi0kGc=; b=rBn1WpzR1+rd1sNk6IXL5xA1qT1q2r1JwXXpBdW2nj0aIJPZ+OuaNl26yxoL3+CwlT DPVQ1mSaonamZ6LGYslUsvuYoEMoe7+mr8TDChWN0CcDFPsFpR9iPwpFAcrGEEkxNukg uZlnFFbo9uxH9P23ePdeicvtYShwNSRqHDALBOY4qKaN5FH2R/aF08Y0YDLvCi0GR2Uw Y1eu3KG93XE6pSmeRKJ1yGvvqfFCK+koE+E1oi3kAk2Y/Tgh/L2Mrqt+yF5o7leq2p6h cHm+dHHZ+07PX5VvDgQlR/tCimE7/N4VhzlBejHEFP4GgjU2Drk71697tLtyToBCpIMZ 2B4Q== 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=dK/cndksPVrrZ4ZJxA4OkRMBiI0wxYMyxRqcMfi0kGc=; b=Z7NiRXwwumQcr2a0/+kfytalRFiLxzA6ekIYHodiZxMibbPP+BZ4lJZRXkVt0EEthf PH7NNJUEgTAzYHEb+1KhcRsXyaT+rHTzaJom0SRIC9he3TLEHOLcIfQojRqkHRyfNoDW MXQtCR0kwY7NP/EtyeuGLkF3hQn5IURj3l1N/2dO4JBRxrqFC5usNH/G6LC9JAAHM0ue fI7VfGr9F9t8zjMXmnK9EdjDgyFMXWrPfnQWBUcUcAHFytNb5LpvgzviB8fSfnbUUuTN y7KCz5oXrXcBjHPOpKAkv6Fw4arXII3LReJY+qTkAzbh5PwgnFLF1vHwFO2tVSjzW4Hw gA7Q== X-Gm-Message-State: ALyK8tJyOmWBoPBT+J8qKctgmWS8pnNMbWoisqEDVbVPL9PBzaiFJsolV7uwVtcujQjzyA== X-Received: by 10.129.36.7 with SMTP id k7mr21089059ywk.186.1464720033751; Tue, 31 May 2016 11:40:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 May 2016 11:40:33 -0700 (PDT) From: Pranith Kumar To: Aurelien Jarno , Richard Henderson , qemu-devel@nongnu.org (open list:All patches CC here) Date: Tue, 31 May 2016 14:39:20 -0400 Message-Id: <20160531183928.29406-6-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 05/13] tcg/ia64: Add support for fence 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 Cc: Aurelien Jarno Signed-off-by: Richard Henderson Signed-off-by: Pranith Kumar --- tcg/ia64/tcg-target.inc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcg/ia64/tcg-target.inc.c b/tcg/ia64/tcg-target.inc.c index 261861f..88cc560 100644 --- a/tcg/ia64/tcg-target.inc.c +++ b/tcg/ia64/tcg-target.inc.c @@ -247,6 +247,7 @@ enum { OPC_LD4_M3 = 0x0a080000000ull, OPC_LD8_M1 = 0x080c0000000ull, OPC_LD8_M3 = 0x0a0c0000000ull, + OPC_MF_M24 = 0x00110000000ull, OPC_MUX1_I3 = 0x0eca0000000ull, OPC_NOP_B9 = 0x04008000000ull, OPC_NOP_F16 = 0x00008000000ull, @@ -2213,6 +2214,9 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, tcg_out_qemu_st(s, args); break; + case INDEX_op_mb: + tcg_out_bundle(s, mmI, OPC_MF_M24, INSN_NOP_M, INSN_NOP_I); + break; case INDEX_op_mov_i32: /* Always emitted via tcg_out_mov. */ case INDEX_op_mov_i64: case INDEX_op_movi_i32: /* Always emitted via tcg_out_movi. */ @@ -2326,6 +2330,7 @@ static const TCGTargetOpDef ia64_op_defs[] = { { INDEX_op_qemu_st_i32, { "SZ", "r" } }, { INDEX_op_qemu_st_i64, { "SZ", "r" } }, + { INDEX_op_mb, { "r" } }, { -1 }, };