From patchwork Tue Aug 29 06:33:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9926799 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 1BE1D6022E for ; Tue, 29 Aug 2017 06:36:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08E9B28879 for ; Tue, 29 Aug 2017 06:36:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1E0728887; Tue, 29 Aug 2017 06:36:42 +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 9A71628879 for ; Tue, 29 Aug 2017 06:36:42 +0000 (UTC) Received: from localhost ([::1]:43073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dma8f-0002bL-Se for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 Aug 2017 02:36:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dma5S-0000PO-Oh for qemu-devel@nongnu.org; Tue, 29 Aug 2017 02:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dma5R-000437-QG for qemu-devel@nongnu.org; Tue, 29 Aug 2017 02:33:22 -0400 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]:37238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dma5P-000427-19; Tue, 29 Aug 2017 02:33:19 -0400 Received: by mail-yw0-x241.google.com with SMTP id s143so1484892ywg.4; Mon, 28 Aug 2017 23:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7cyqdcqT7XR/NRo3PwV57yOZ8y6Or0EHZ7FWsTFdhh4=; b=H/nljru4Bbz8uSXStjX0osnHR2stHKc2Ih1NZqthue6gFvGx2+/rD/LoN4biNch9V5 WjWwiSXB+bb5uF6j7Om7eSJ6o3ESE51eP599e2K1JElzhfU716GnAshdsgNwBvZFbVgx 8RKNLjm23cXM7CEXohWKrU1udksYu75K3BmemrO0nLum9CmgZygA6gLIPLMAOehQsQTr eq86r5uxrsICwdIrzJD886sseAIiVqQlcK67DOCT6tFitMzMg8aGDtdY6cJGQkgQFJgg yoBFkNGFlGkBZJ9zIkq6PCjH+dG2S74hTCvWssQlUujPCoTQ2L6A9FgkJ6WiBICJKMaE H9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7cyqdcqT7XR/NRo3PwV57yOZ8y6Or0EHZ7FWsTFdhh4=; b=L9tLdV9YOF5b2F0FLfCTNaxOhWGLI6n/BJN6o1wLHvR9Y7/WikV7dB/P67+eAeNV6p XLTeTqm2GAuu+0uU0ubb8r4CRLiOZefOiP+K2rzD8I3cCekZWBx6Vw7jawGzygvzbywK AYKCeeiE6TBb5XOrndYpueKVW2HBqaP6DApkFw7f9wuMwyXUtOGPh6J6fHxg45PsV4m5 cfZ2Bj631C3etF7Gqel0S1oy1EOB1OKE7bGX+eFFcUliCIemciTkJJQRUp7Kd4Q96bHY 0Y2XUeJJMNpxUHfUwKRcSU0kvYxJBwqn7XL+nC1PsM2/hb68rEurwnHw6Qr8VFh9eghM 4rtg== X-Gm-Message-State: AHYfb5h+H0BTApo7lxuzUELj5TFvqRZ6RHPzOLOpHEvpALxgQQRVDS4n 3y41cf4GoT6IuA== X-Received: by 10.13.225.71 with SMTP id k68mr2537649ywe.33.1503988398387; Mon, 28 Aug 2017 23:33:18 -0700 (PDT) Received: from localhost.localdomain ([98.192.46.210]) by smtp.gmail.com with ESMTPSA id x4sm817923ywa.44.2017.08.28.23.33.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 23:33:17 -0700 (PDT) From: Pranith Kumar To: alex.bennee@linaro.org, Claudio Fontana , Richard Henderson , Andrzej Zaborowski , Aurelien Jarno , Alexander Graf , qemu-arm@nongnu.org (open list:AArch64 target), qemu-devel@nongnu.org (open list:All patches CC here) Date: Tue, 29 Aug 2017 02:33:11 -0400 Message-Id: <20170829063313.10237-3-bobby.prani@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170829063313.10237-1-bobby.prani@gmail.com> References: <20170829063313.10237-1-bobby.prani@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::241 Subject: [Qemu-devel] [RFC v3 PATCH 3/5] mttcg: Add tcg target default memory ordering 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: pbonzini@redhat.com, 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: Pranith Kumar Reviewed-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 2 ++ tcg/arm/tcg-target.h | 2 ++ tcg/ia64/tcg-target.h | 2 ++ tcg/mips/tcg-target.h | 2 ++ tcg/ppc/tcg-target.h | 2 ++ tcg/s390/tcg-target.h | 2 ++ tcg/sparc/tcg-target.h | 2 ++ 7 files changed, 14 insertions(+) diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index 55a46ac825..b41a248bee 100644 --- a/tcg/aarch64/tcg-target.h +++ b/tcg/aarch64/tcg-target.h @@ -117,4 +117,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop) __builtin___clear_cache((char *)start, (char *)stop); } +#define TCG_TARGET_DEFAULT_MO (0) + #endif /* AARCH64_TCG_TARGET_H */ diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 5ef1086710..a38be15a39 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -134,4 +134,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop) __builtin___clear_cache((char *) start, (char *) stop); } +#define TCG_TARGET_DEFAULT_MO (0) + #endif diff --git a/tcg/ia64/tcg-target.h b/tcg/ia64/tcg-target.h index 901bb7575d..8f475fe742 100644 --- a/tcg/ia64/tcg-target.h +++ b/tcg/ia64/tcg-target.h @@ -195,4 +195,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop) asm volatile (";;sync.i;;srlz.i;;"); } +#define TCG_TARGET_DEFAULT_MO (0) + #endif diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index d75cb63ed3..e9558d15bc 100644 --- a/tcg/mips/tcg-target.h +++ b/tcg/mips/tcg-target.h @@ -206,4 +206,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop) cacheflush ((void *)start, stop-start, ICACHE); } +#define TCG_TARGET_DEFAULT_MO (0) + #endif diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 5f4a40a5b4..5a092b038a 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -125,4 +125,6 @@ extern bool have_isa_3_00; void flush_icache_range(uintptr_t start, uintptr_t stop); +#define TCG_TARGET_DEFAULT_MO (0) + #endif diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index 957f0c0afe..dc0e59193c 100644 --- a/tcg/s390/tcg-target.h +++ b/tcg/s390/tcg-target.h @@ -133,6 +133,8 @@ extern uint64_t s390_facilities; #define TCG_TARGET_EXTEND_ARGS 1 +#define TCG_TARGET_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD) + enum { TCG_AREG0 = TCG_REG_R10, }; diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h index 854a0afd70..4515c9ab48 100644 --- a/tcg/sparc/tcg-target.h +++ b/tcg/sparc/tcg-target.h @@ -162,6 +162,8 @@ extern bool use_vis3_instructions; #define TCG_AREG0 TCG_REG_I0 +#define TCG_TARGET_DEFAULT_MO (0) + static inline void flush_icache_range(uintptr_t start, uintptr_t stop) { uintptr_t p;