Message ID | 20250402210328.52897-33-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp2962422wrs; Wed, 2 Apr 2025 14:10:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVVN0HMYa3B0GGLAMi4F14WPuuwJu2qRTKpCuJH21PBo0z0KG5SwjCsQ8E9FoTaPHb8ZG+T8Q==@linaro.org X-Google-Smtp-Source: AGHT+IFHWmLWT/4rRIzHuFXKqfUsBJJ132RnsQzCvDeeMiDbWphs9CBXcc2ckE/4v6Jnlr1hGGMJ X-Received: by 2002:a05:620a:240e:b0:7c5:467f:d130 with SMTP id af79cd13be357-7c76dfd519dmr14123085a.36.1743628218589; Wed, 02 Apr 2025 14:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743628218; cv=none; d=google.com; s=arc-20240605; b=Eb5wzre0kRiBbHHa7sTFg4xEYu/svciqiEG0CYCqsYy4PbZRrValzMnUXuG6ZN+zoh NpUkf1LinggNxyiIv7TW34t/7Y55Xa19I67kLv/w6aRg1/qF9POAO3r17ZUwmfxEEZsH r5UMdBKu60JAxZKNxSKLt5mNnmqoNeJPPu0NF5Fru+mhKEVn7rQngPXYrobjFaoI5md+ eMWbPXxxJwvz1Yf4Q86dyM386NfEW0jVweQ8AbC1K4rJm5fgWg4HsIiu/tOcOJvCefO1 LsfgUjkxV2IIeG6VA5BKdHuvinzUSueXny8/T6CukaWc4Ag0XTZjCDSD8zeu7BaQXJsI CUjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=VUBhKNJ33VGc0tAXVv72Kq3hUC0BPxTHmotqIBCHglo=; fh=4AYY11sr7aS6GV550hOpfPV8vZuFVuIPMdzEAEflty8=; b=gs/dKwY9Kh2aQ5JC8AM99MVYbNbfA/EpXyp1NR/ZgjFbnjgTtJWWiATERM2EV/4Oka WjEdJ0UPg9NXiRVW3YeGGve0NG0C35ckIXcr0E6APnpLrQltLWpCYdgf2C6pJzB9IiB4 FyxJ4EgF7geheUI9Q3SGmCBLLKBIH+sv6vpnQfG/cUsjXi6YEPY3VbSUjCmZ8MW6K3p6 2RIJrhTqu6QSk7ZpAU1ga9sEUZZcht1wislnOZ+QOh5sjOCPEyftxGu2CPZ2iV0b3fqE 1vB7rfB0Gn7dANPLv1koGqjSS4gyZl53/LuUkWH2H1aqdNtM+ovEkIpmYOs4xzuVDnE5 3mVg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XCIXrF5B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c5f776c780si1148398685a.323.2025.04.02.14.10.18 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Apr 2025 14:10:18 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=XCIXrF5B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1u05Hu-0008B1-IN; Wed, 02 Apr 2025 17:06:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1u05Hm-0007Oq-6a for qemu-devel@nongnu.org; Wed, 02 Apr 2025 17:06:10 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1u05Hk-0006lb-Du for qemu-devel@nongnu.org; Wed, 02 Apr 2025 17:06:09 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3965c995151so115555f8f.1 for <qemu-devel@nongnu.org>; Wed, 02 Apr 2025 14:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743627966; x=1744232766; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=VUBhKNJ33VGc0tAXVv72Kq3hUC0BPxTHmotqIBCHglo=; b=XCIXrF5BQd2mq7LOmUDFT87HyIjc9fA8sX1CMPUnjmIuT1cB1xmJPCmN6MHXJOuA3h XHY9xoDybD3OPJt5Q4tTlf/neyw4+KagYLN1+8ddWpVOQ4yGU6NUnfHlEpFnbDfdQLLC DObGcRUHmY3Sn77tqxkMPDFtV88UErXdTzscTRkkQ7HcuxefaBTYYQgJbfXU2OFJRzT6 9CC//V53CfHyGLROGyLNNqWq5c+1kQAIWHmyOdveS9t9YOLiHfcszpMN8PfUoJvRwAJ0 TWDaPf8H5scamm3zVurAasQNZGegkXj9a+U0oUF7e6tPG74RFm3fVubi4qywsxgB9V/5 6EDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743627966; x=1744232766; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VUBhKNJ33VGc0tAXVv72Kq3hUC0BPxTHmotqIBCHglo=; b=qX4eHetqNb90TZONYt8b4L/ycL4NDCo3llRUFv/PCm4heeRdK7SLFQAO9iav9R2pvP G19cNm8WQVmHqB0SzBxGLCzsg7+oMpVu7oL8vfSjGp9KyrD2Rx67jLWGvjkl/fJ+7uJ1 46SP+TdJtUbZUHSBuyKkoJeiqYEJze2qO0BSU1vJAqsKAdvqGQF3CfIWNdT0J27zSYCv JT8OvZvS3AkVEVeOlCNg2ha6Ip7/Poy0dyZQGF5piqd/t3VrYD/BRdU1sJU9wjiOtoWN cG0R9Az/OuDquBGkOFvfQpswLl0CU+mqeevQWjIu/W02UxcwUIhX+b6+pmqOcXtee4rK lLRw== X-Forwarded-Encrypted: i=1; AJvYcCXx4HAVZIqPblv8cwbycDMU394M4AQ8oq3Hg3z+ANSGqtLuDuxkM9a6noI484Ff4SsxwxIt8EvHo5y0@nongnu.org X-Gm-Message-State: AOJu0YzoaTvfwE3uLqGrUdaQoAubk5qJmZwPJ58TZjxy2h7XlQow1V8n aQGWgKed4IU9PbcM/VJFdaHtwmWno5VMGXeI4aA3ST203eRtqV6MBkTFNQO6QYaOCNg5petKK+p O X-Gm-Gg: ASbGncu+CdBY+DpWX9Ac7kopKHuyLq8CjfpxfkMLQl+FuydquDc170HQawzDyBvDutZ NAt7wxKHlCdt9BQoX5avtXNUQLFkgBzKULOHCKki9WmI/+ZOrlbnxWhj+I9yi1xV+tu2vradilM v5gRD0ECrdo0XCsZFaDYMWPf5qfjo5tvugltjMWh+vM/TiyF6gcnWMKhxXs0pGB4arwiLSP3ZSq onUuQ9hm4qDS4/1kdUsABLdT7w2OMDieBlWeuVJQekg3ObYQDJifB4HFsUjQRSQZQ1RquzkrmQQ rAMXp7LiR7qgJb2hlGPJ7K74cS9SspbGU5XRXfJvcfOJZAaroMByIogAFzobdPV4gC+CJaYRW7I RZGhB5lisa+b2vqkM988= X-Received: by 2002:a5d:588c:0:b0:38d:eb33:79c2 with SMTP id ffacd0b85a97d-39c297698afmr3121902f8f.32.1743627966659; Wed, 02 Apr 2025 14:06:06 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c0b6630a3sm18030651f8f.30.2025.04.02.14.06.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 02 Apr 2025 14:06:06 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org Subject: [PATCH-for-10.1 32/43] tcg: Simplify tcg_req_mo() macro Date: Wed, 2 Apr 2025 23:03:17 +0200 Message-ID: <20250402210328.52897-33-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250402210328.52897-1-philmd@linaro.org> References: <20250402210328.52897-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: philmd's queue
|
expand
|
diff --git a/accel/tcg/internal-target.h b/accel/tcg/internal-target.h index 05abaeb8e0e..1a46a7c87dc 100644 --- a/accel/tcg/internal-target.h +++ b/accel/tcg/internal-target.h @@ -52,17 +52,10 @@ G_NORETURN void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); * memory ordering vs the host memory ordering. A non-zero * result indicates that some barrier is required. * - * If TCG_GUEST_DEFAULT_MO is not defined, assume that the - * guest requires strict ordering. - * * This is a macro so that it's constant even without optimization. */ -#ifdef TCG_GUEST_DEFAULT_MO -# define tcg_req_mo(type) \ +#define tcg_req_mo(type) \ ((type) & TCG_GUEST_DEFAULT_MO & ~TCG_TARGET_DEFAULT_MO) -#else -# define tcg_req_mo(type) ((type) & ~TCG_TARGET_DEFAULT_MO) -#endif /** * cpu_req_mo: diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index 7a5b810b88c..a5a1fd6a11e 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -77,9 +77,6 @@ static bool default_mttcg_enabled(void) return false; } #ifdef TARGET_SUPPORTS_MTTCG -# ifndef TCG_GUEST_DEFAULT_MO -# error "TARGET_SUPPORTS_MTTCG without TCG_GUEST_DEFAULT_MO" -# endif return true; #else return false;