From patchwork Fri Jan 18 17:18:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 156024 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3500776jaa; Fri, 18 Jan 2019 09:20:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7tcANmhruJqM/qGhorDCjg9qukM3ZNWSDiF0Yd0YTiGJchk8isirYIZvpT7I0KGdEgpZ7I X-Received: by 2002:a5d:6988:: with SMTP id g8mr16757632wru.33.1547832047615; Fri, 18 Jan 2019 09:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547832047; cv=none; d=google.com; s=arc-20160816; b=Whs2b50ofprQuiPhlmjFmBpITCBDSleZLR/1PDGM5So8MQ4pmt0XrXiBH+8jv1lpAQ AKYIn0ghvTswmirNMegIULE26fwkaKc7lF7QQjv8GXhkd/QpiJdk/opY9cv+IJt/lL/4 jP9fOGpUNGKQHLnfOb0PPrXhJdNq1uvdio+2EyZmsTevFn0lXhB1EW9w/nXDvrv/Nfn7 Rz1plf8Ym80BCBkLk62ooz0viBllXMtvRbRJ05doXdjFooXe279ugCmY7CfqiVBerNQV 2/PqQvJzOMauk4ifxWBBNo/QSExLfbBtb+5xwUi2GTQ/qMMARaMb+oDUbSHy5AoeNfx7 0/Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=TyCXNb9/YpBSoAyXo5XGNNovI3VoJkNDV9x89TeGPnM=; b=G971arTXGPbiUmpoe2vwg6bodFSM+KUDCoVJRazHmN73Nx2Rq8Z30E8dKBvOaN3rFZ mWFwoJIktxcKnZIsUJBK9tQ6thxkhZfbDJatl7vblsndSvUO5L2WYoqolC49u8Xb5ZQ4 qkLqxRYRHuW654cYxcmgPto+bOoY1z//DOlznyE2uoaxugwo1WreWY02V8ltXEPVPLbX 3gGmebBfs2kWerlywkcm2NhgCNrJTN5m2bsyiXA25VyABJIUoGRRtJSGig99vyE0SFsB Zu16i46vw+xbuuDuEKZoJU1UNfHHa7ckdAvexJmWP4ftj/XoMFPqmu/8H6gcya1pjEug 1peA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U+qRXjfd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f10si59231232wrq.38.2019.01.18.09.20.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 Jan 2019 09:20:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U+qRXjfd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:43941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkXp0-00054B-IA for patch@linaro.org; Fri, 18 Jan 2019 12:20:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkXnL-00044f-HP for qemu-devel@nongnu.org; Fri, 18 Jan 2019 12:19:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkXnJ-0006GM-L2 for qemu-devel@nongnu.org; Fri, 18 Jan 2019 12:19:03 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:40869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkXnF-0006Be-Rq for qemu-devel@nongnu.org; Fri, 18 Jan 2019 12:18:59 -0500 Received: by mail-wm1-x344.google.com with SMTP id f188so5175057wmf.5 for ; Fri, 18 Jan 2019 09:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TyCXNb9/YpBSoAyXo5XGNNovI3VoJkNDV9x89TeGPnM=; b=U+qRXjfdzk10PjEbrxwwEbCQ4puE27fnWzLz/bXIjrfJ0ehRURpLXEFF3v2BQBpMBQ whKywtBatvKON5X39oiJOhUK+aQoEL49xi2NOJkBCgErhaeIqp1+cwGHQdOfAYEom0FM Rvtyw+xwil9QqCbOHwt8DNeJNC/uYkdi5RDCU= 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:mime-version :content-transfer-encoding; bh=TyCXNb9/YpBSoAyXo5XGNNovI3VoJkNDV9x89TeGPnM=; b=UG7ToTBfn4I7rmXqNJR1g4iZ+/c9GbyurmHvKQs4iMPP8R6uaJZADe3L43Je0SJB+N wLIohqlEr8u2LpYIz6o2i1MM8k2Jj+sACox3nr2lxJC1oan7zY9hV2boAEUt3flTHYM0 pkvp9/XpEhxxQAEFInxottw8273Chg3BYVcVRciIa2K4nv4u66tzuyt66wvl9XRICEhH 7jI9IOwbLqA1NTD/0gOLIxMC4rDwA2wEs7OVDP5r+InrfyF7hV0lXeRLZVQgX3FmARvo auX55Ds+meK+r/rbDTCiPXihflJWqWXqhHH04iPqEqasQ4QBw+p65StfS0CbjfSJqorD toOg== X-Gm-Message-State: AJcUukfsp+y7f3R+R4d+gsCySMoUOG/xsccW/M4PUX1rV82SODfwTSCR zmvGWsnfz7lDJqkslsxn+1u6bw== X-Received: by 2002:a1c:6489:: with SMTP id y131mr16155615wmb.34.1547831935493; Fri, 18 Jan 2019 09:18:55 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 124sm46118639wmh.22.2019.01.18.09.18.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 09:18:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5A99F3E0487; Fri, 18 Jan 2019 17:18:54 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 18 Jan 2019 17:18:48 +0000 Message-Id: <20190118171848.27332-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH] target/s390x: define TCG_GUEST_DEFAULT_MO for MTTCG 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: Cornelia Huck , "open list:S390" , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" MTTCG should be enabled by default whenever the memory model allows it. s390x was missing its definition of TCG_GUEST_DEFAULT_MO meaning the user had to manually specify --accel tcg,thread=multi. Signed-off-by: Alex Bennée Cc: David Hildenbrand --- target/s390x/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 Reviewed-by: David Hildenbrand Reviewed-by: Richard Henderson diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 8c2320e882..47d2c2e9cf 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -35,6 +35,10 @@ #define CPUArchState struct CPUS390XState #include "exec/cpu-defs.h" + +/* The z/Architecture has a strong memory model with some store-after-load re-ordering */ +#define TCG_GUEST_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD) + #define TARGET_PAGE_BITS 12 #define TARGET_PHYS_ADDR_SPACE_BITS 64