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: 1027663 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="U+qRXjfd"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43h75B2bq6z9sBZ for ; Sat, 19 Jan 2019 04:21:02 +1100 (AEDT) Received: from localhost ([127.0.0.1]:43941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkXpE-00054B-AT for incoming@patchwork.ozlabs.org; Fri, 18 Jan 2019 12:21:00 -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-Google-Smtp-Source: ALg8bN69RZQV89eY2r9wlM/vLn+FkkGkBOkZEF66lwmxvzj7BlDJSnHx1jcWj/A//GQQkHpy8b+Bdw== 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+incoming=patchwork.ozlabs.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 Reviewed-by: David Hildenbrand Reviewed-by: Richard Henderson --- target/s390x/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) 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