From patchwork Tue Feb 5 16:41:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cornelia Huck X-Patchwork-Id: 157483 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5383367jaa; Tue, 5 Feb 2019 08:44:57 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib+bzJO5fabbdl0bR2iwoxrkl0dLV32vQCTtRsi+wO0lNuSw8mYhmu4iq8FBXe74BOJdvtz X-Received: by 2002:a81:290c:: with SMTP id p12mr4803544ywp.62.1549385097722; Tue, 05 Feb 2019 08:44:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549385097; cv=none; d=google.com; s=arc-20160816; b=onYzq08OiU98xPfkiu+lV9iLeilHmS5sJKDtXVw9mUQjaq7bHKHmCsozTJ3UlGknbg y8oTu2bLlRnF0tkjic/+a8XGhkPZOroQ0dQjBxUeWlyrqmTRqCkkJU9dBvdnllBm6hqM iGMNvKi/d6vwLh2knJOcZe44vOWoKNNppCDlXl9Bb5zG+wyGNst3jHmVWmBwqyFLCDQs nxFVbrs/Z/vLN6wZllfXMLhfeDfNQzGoY+wOLkgImEHwApGPm3O5U9hpePjdTqOBAg4M V8l+mV9Y8lh7c0Co3K+E+Q/SoP8vm7tjWxRhR99JHH83PjGyZp9/JNkx00twTBvHQlzS ZzTQ== 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:references:in-reply-to :message-id:date:to:from; bh=GJoKzhx8c3VW69dCpdYEapakTRi+tP96XVfQcG2fMTk=; b=OgSrwnUHrILWWFjxc9VHxV3Pt2q9tZsIP9zfBJNJ3oX1TQww9B/dMqOeDdyWoGoe+y B0+hBoQGUMgO5a0mJrF90KaLNupGjLfr0AMy6hEUNjMdogAgobTCabP4WWj6iJdE/JlU mdw7ZDNVmlMoNniGQ2W7RPRSRa4W/nb867Elzh9nFT0EP7go4x08gljsQ69Tc9ZRKNO7 RK9cGW0Er2+R4sUOXudLZo/YbiqR5oF8ZjzJmERVMgz1vZxTufSMZgQNxdwef253UoZc H67L4KAF9Mb+oaJOleoX7a6ZuXJLTG/Po0mR1Cv+D0UKDImFtkRBEgRgI/n7cqVhppvw dGSw== ARC-Authentication-Results: i=1; mx.google.com; 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f15si2206739ybq.422.2019.02.05.08.44.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Feb 2019 08:44:57 -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; 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=redhat.com Received: from localhost ([127.0.0.1]:34664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr3qD-0002mX-48 for patch@linaro.org; Tue, 05 Feb 2019 11:44:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr3mj-00012K-1Z for qemu-devel@nongnu.org; Tue, 05 Feb 2019 11:41:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gr3mi-0007uZ-7U for qemu-devel@nongnu.org; Tue, 05 Feb 2019 11:41:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51738) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gr3mi-0007uG-24; Tue, 05 Feb 2019 11:41:20 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F89D73; Tue, 5 Feb 2019 16:41:19 +0000 (UTC) Received: from localhost (dhcp-192-187.str.redhat.com [10.33.192.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B17E57A1; Tue, 5 Feb 2019 16:41:14 +0000 (UTC) From: Cornelia Huck To: Peter Maydell Date: Tue, 5 Feb 2019 17:41:00 +0100 Message-Id: <20190205164109.25413-2-cohuck@redhat.com> In-Reply-To: <20190205164109.25413-1-cohuck@redhat.com> References: <20190205164109.25413-1-cohuck@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 05 Feb 2019 16:41:19 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 01/10] 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: qemu-s390x@nongnu.org, Cornelia Huck , =?utf-8?q?Al?= =?utf-8?q?ex_Benn=C3=A9e?= , qemu-devel@nongnu.org, David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Message-Id: <20190118171848.27332-1-alex.bennee@linaro.org> Reviewed-by: David Hildenbrand Reviewed-by: Richard Henderson Signed-off-by: Cornelia Huck --- target/s390x/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.2 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