From patchwork Mon Dec 16 16:05:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 851234 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2934934wry; Mon, 16 Dec 2024 08:06:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWbwUSd7fQK9hPXIDLBXtThhtPpg+M6wuh9DE4RtSKy76r4Y/xAeLbW/uusfelCzXHB3yaZgA==@linaro.org X-Google-Smtp-Source: AGHT+IEu4t0u4aoZZw+9teF7SQEkKsaWAPr8oBGePNMzVJifkbkIvujcJhUz8vWrKe8BhjaS+peJ X-Received: by 2002:ac8:5f8b:0:b0:467:4380:76f6 with SMTP id d75a77b69052e-467a5718d2amr200398381cf.11.1734365172196; Mon, 16 Dec 2024 08:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734365172; cv=none; d=google.com; s=arc-20240605; b=dRdXclVmmSA42I1klv/xbcZ2szAF4ohlkfMwJMLbucPJSKlxqOU3Ucb6yktrBLXZwh y5v4jln80lAOjTx//pz6nRf0oM6o0eDnjsB+TN4rYGBMzCmaiGQggPRqLvvFyAIQkpUU PZmc2YmvFERFmc/WYyI6aYPZMgklRW6hlWurNE1teUY8G/rddmblOix20BhakWibNDLR 2Jz4bfugyYKCjpxe/biVE/PUwk9aPNSDPCn86qNG8pVsofY646lbQT9cd/DBGsZVMvKO xikwqT2L5aDLjcCs5iTq1CtPEfDEgNn9no5ENkQmLTQbaaQX6xLSrz3kWLwanKJsolRy uaag== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=+cEtuPLfzX3+HA+p4O6VB2iDGKV4RmaMNbJGKVtmUNo=; fh=fz3DJMUXEzejNv0JWYQ+xa02BmrDN+/I7HIv5ot61VY=; b=DjdF88Fse/0DBB36nYCIF1TqTNnQPLZFFQU6ayiQYTemkzKXyzzXXZx5OjQ7obZdlk atsOXcUVEn7O0ZulQvpNeQHVeEaHvOEqLom06P6AkHuti7YABVt6o5ZR1lC+q3ZGJelO K1wnf7dEZaO5pzD3RM7h6oZO3O75uOQdLU3aBDOCebACLXxG+yB+WRqKPRcHenhacxmZ mPG3yZVIgTpU3alUi50MvV5mDtGD9SX6dRDwCMfzZ7QJ9lEkGG94g5Pn2GQlbkdGW0y6 yfBR3/TbXd/k/6N/YStQvUqDTtD69ysj/bluGu3sFIfbd3tsR5EYaNLyJ7Lghu6/Neo1 96EQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Omj0Uq2H; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2c992casi83739331cf.23.2024.12.16.08.06.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Dec 2024 08:06:12 -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=pass header.i=@linaro.org header.s=google header.b=Omj0Uq2H; 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 ) id 1tNDb2-0003eg-TG; Mon, 16 Dec 2024 11:05:24 -0500 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 ) id 1tNDaz-0003c6-Np for qemu-devel@nongnu.org; Mon, 16 Dec 2024 11:05:22 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNDax-00064f-TO for qemu-devel@nongnu.org; Mon, 16 Dec 2024 11:05:21 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385ddcfc97bso3608115f8f.1 for ; Mon, 16 Dec 2024 08:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734365117; x=1734969917; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+cEtuPLfzX3+HA+p4O6VB2iDGKV4RmaMNbJGKVtmUNo=; b=Omj0Uq2H56UwvZykc2uicU2FI2FNvowJaQR29Ovydcz2gTWrAS5gR5X5ktzZ+Lj652 yWLFgH+wSu8MUzrd42aTOQ1nyDN0fYNppe0S7hTFkJyOx6y2XlQMYKoshErsRCgJqxmJ QYLlraKsO+A/0U49lkCPb7ee/+3yjzOkZoneCOFQoJHPqs3cDfkeW719TEz+S7nbCzET hqYrD43/fFWPKcwXfEz08+k9YUQxn83a4Dc+DZHSawEaSB3dd6jmM8mQQ26vUDBtlkZ4 SU9nEma0fDqZQulTQ56qE6hd+ms1BHbvEjdNenYIdsFrTfAMHpEWr/MziJnX7CjXv/xj 10YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734365117; x=1734969917; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+cEtuPLfzX3+HA+p4O6VB2iDGKV4RmaMNbJGKVtmUNo=; b=Vsv+tTlx3KMGWhraLfylAx7dkyKzOQCeRV5YBFr4Jfe5R1kmOnUSq2YLwya4oiUitz 3h6vpu9XlmC9oAAswQ7ZYbre09mAR8B2bde27tdV4I9/3XA2RwXmnF19gqquwvRh5i2P /6ijnule6jwUjyzUNza4jpJWelDPt4bn/MeqEFY1LrEqDwUCai5deIjYoeatFYM3etEZ fYiWSjYP+ysG+vYas3phg6V+Ae6V2BA2bL29bgvnydTPNNdxIsW+MXsEIdJh9fx98m4J m5qKKsBpJgo3TPICb6Y4lPmZM8bpRmlR9qnmzb83PUFIqbx2EHqxwLdh51G0TeFIp8n8 YueQ== X-Gm-Message-State: AOJu0Yzl5oOQes5wyJCXjB3Bm3V4WGzZLrfRTyzjxlIZ3f6zRcZA6+vp jjm2KaklCJMk7CRt0gfu8ZQ2Z7UpxamZLViGnR7lXX2JKo3TKbmHnV15TcKpU2RpPhF7w8L95u1 m X-Gm-Gg: ASbGncuWTvVbHSr5/0X9S2TDGwYljP0QxNus003ShHEZZlKhql1OYZNpvg836XY2hT9 Up7qgcy5ggXAParJQP+nv/7hyNzq6ihL3IKNKDGhFYbKW0U6c83o4suGrMfMGjtkKanvKGGinBw doFadDxFSqGEf/4dSMotuljK2G1vt9MRt0eNTu0mSsVgQPugvZfQ2eP2W8BspFHBiaLXm+4vZvk wRdOOlZUnL/2xcZmMzxheI3SM4ec+vyRiGAah5E6ZUFTA01KtYIu+TIiaVG7BWm2BELIFbjpBaE CQbV X-Received: by 2002:a5d:588e:0:b0:385:df63:4c49 with SMTP id ffacd0b85a97d-3888e0ae5c3mr10543297f8f.25.1734365117359; Mon, 16 Dec 2024 08:05:17 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c801a628sm8686657f8f.47.2024.12.16.08.05.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 16 Dec 2024 08:05:16 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH] accel/tcg: Really restrict cpu_io_recompile() to system emulation Date: Mon, 16 Dec 2024 17:05:14 +0100 Message-ID: <20241216160514.56630-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Commit 38fc4b11e03 ("accel/tcg: Restrict cpu_io_recompile() to system emulation") inadvertently restricted cpu_io_recompile() to SoftMMU. Correct to restrict to system emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- Based-on: <20241212185341.2857-11-philmd@linaro.org> --- accel/tcg/internal-target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/tcg/internal-target.h b/accel/tcg/internal-target.h index 1cfa318dc6c..3ed81e740d3 100644 --- a/accel/tcg/internal-target.h +++ b/accel/tcg/internal-target.h @@ -36,9 +36,9 @@ static inline void page_table_config_init(void) { } void page_table_config_init(void); #endif -#ifdef CONFIG_SOFTMMU +#ifndef CONFIG_USER_ONLY G_NORETURN void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr); -#endif /* CONFIG_SOFTMMU */ +#endif /* CONFIG_USER_ONLY */ /** * tcg_req_mo: