From patchwork Mon Jan 27 10:26:10 2025 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: 860226 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1946696wrq; Mon, 27 Jan 2025 02:27:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0ORRjKGIg20nPy7iBmd9DXjFiBbHYjj9jXpD9yq86xdaFdA9WekzqlTpUoEPaIUv60zt8xg==@linaro.org X-Google-Smtp-Source: AGHT+IEIvDBvyLzEKqnWyAkJpHVi779XmnhiYdY01PPmn39Vd25pnx5SHYf1kR8b2/e9BjotA3m+ X-Received: by 2002:a05:620a:29d1:b0:7b6:670f:b91a with SMTP id af79cd13be357-7be63278ee3mr6579850785a.43.1737973675144; Mon, 27 Jan 2025 02:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737973675; cv=none; d=google.com; s=arc-20240605; b=k41ZjQ3CyL7K0DMPw9lpm0ZyvClO5yGo7ECPZTOiHv9V0VfM78GVEhtXVNrssIWi0V soy7NsgJudXd21PrI6xrRGTUN0/JAqdxCvHh/FbPI7YQT7EVOt8I3F9QAq5+PPD+hRON krj7ZdFpv+PpIqW3zlwT23flCEyW7w8dsAG7PWdX+KGOAYBc3u4FpzYiKBx22TeELEDc A7H3C1agA/l/bTBF2GIs4cb0vV1En0Rg/fPCRzseGNQeSOj13tYk8c+ccWFechTvbPyg RFRs0hHwZmWsHvoZPfEI6gJuyuvykqMftnWMe6+x2TuXVY97g8UxEhFMuNO+ROijUNAM 7lXA== 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:cc:to :from:dkim-signature; bh=pHD1U6D3WvJOsbcmnGXDiHvtbFUdg0u7emrKOSlHmN4=; fh=G3zkgtM0+U9rHQHdLuIT+YnPlKRaM6qSFCr7Ftnx4LQ=; b=BXoptctzHqY8lQOAg+kxhrzqaX0PkMd2SNofLYSViC1Jy1H5wA5twPw3T7GiHHy6Pf b9K5LpnIhgBGuRl2yKr8z5lMNsLFTqCNYfyV+t3GGgK8ulr1Dco6Nh8FY75Y+4Yo7o4E Yd2QidLsY9Gye5h3+wxZh7IW5wbYunO1FlboeW5zsSDr9piHxejw4TcUsajzu0CtAP6F lldY3VdpbXEach/kA9K+DXeHcJw41ORAjjhwzCyjqZN/haX+hpl3f/VbkoAH5HVMQdG3 QgDjhdm7hlBxl5H2f3ULrELtzuoWPgiQ1tz5PV4twH5760LpZOVtd5o0fVWryzFxpiwI 43tQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kL4fgL35; 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 af79cd13be357-7be9aee0ef4si929757585a.272.2025.01.27.02.27.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 02:27:55 -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=kL4fgL35; 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 1tcMKU-0001k7-4E; Mon, 27 Jan 2025 05:26:54 -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 1tcMKT-0001jH-8Z for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:53 -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 1tcMKR-0001yL-QR for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:53 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385e3621518so2153091f8f.1 for ; Mon, 27 Jan 2025 02:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737973610; x=1738578410; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pHD1U6D3WvJOsbcmnGXDiHvtbFUdg0u7emrKOSlHmN4=; b=kL4fgL35+EfWAQckiJ9/n4FQiTZaAwFETZk6I0HhMOS5UxB0Osj9WXY8Pvs+Dzk0br Q1yDoMuRWV0YPjweJH/IYA4K3VLxdYEedUdYOU70awZzHQ3b3GgSLKx+yj1uerQfBoVi DM5qfFp5ay/7pNS8NqOYhWjB3BPyxeBZvQEjt096w9BG4bCxRB3BH92cVp435HK52d1H TiXBVt3Dcq9FOPedee12H3DYzQcBymvS3yojJS+qFuoVElYuUqBQ48rNX8RUuFonkXha c210fw0UtfLDHP3by5+PmZgGxHTZwaiLrZUJowdjbjA1rFmCBCmVLqRS9m5tfxIMg8V/ u5xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737973610; x=1738578410; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pHD1U6D3WvJOsbcmnGXDiHvtbFUdg0u7emrKOSlHmN4=; b=qJWfIcaBWuGCVl32s7xMPP1X8hA2Ejd1RhXWR34rJagCh2KIoCfgR/99hILYwzRf6q ukQyuLkGSfTBtuFOVFJDOHyd9UMZVe/ukkucZL+Zd3fu0V9CkcZeWg3zuLkB5qq8fcYV KaHbKXokp2lZ+viOkq4UndoLtUAOkdUVPqASLlJyDlCPdMhE2YDdG5MFYBTQUf1LG2PW SuQLal05q74S66IA1MOgGkUFfUKeCicUFZrvKfy4KIl7Cvo7gFI+3MbuBpzTTSf8ggmJ v7l0iDVGUt4NFGysZq88qBk0rPB5JeOLVvwMrP58P5oPGGVj2U9eoqvHdxI5kOgSPguf Me5Q== X-Gm-Message-State: AOJu0YySexFBY//CNbZ/trZvvfwDrZEIoNbiC3V/CZ5hMGs0qo+Nw+Zu TxfsTJxjINhxamd/3ELqmllWa14zwqQH5knO62V6SnWlexRRnIbtgL6TnCRYr1IOlddI4asqcqn rn1I= X-Gm-Gg: ASbGnctqiMNGJzWoHkXdzQA/NmG9aZLGQEeRSXkKThc2ApYK5B1R/6h4yLXBgUNi+4d OcUXl1PzoLhX+jjJaNXdGcW0BhLvl/PqMLyw0kxwY0u0sswUHflWNmF613FAJlAx0/GcH4V2Rsu 1Y4622HEf7ox6voHGOKjXLdD7/lzVpaeigzzrjq6sCzX9IfrjX+UZHw1Ng1icjqeswhHE6CfICr M4B4qsGoy8WUQTqHlLo+F4gN5wiQbgbpXFUvB0glZZyqamK2FPHdcX9Xp8aevYdSjrzAMGRTqFF Gq3vrISbLJ+LBAiINxhSfwO7T9PVEoVMQWEu/u9CU0jri3KlLeXhg+s= X-Received: by 2002:a5d:64e9:0:b0:386:2ebe:7ae2 with SMTP id ffacd0b85a97d-38bf57b8aa7mr36379943f8f.45.1737973610166; Mon, 27 Jan 2025 02:26:50 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a313383sm10923817f8f.36.2025.01.27.02.26.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 02:26:49 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Richard Henderson , Harsh Prateek Bora , qemu-ppc@nongnu.org, Nicholas Piggin , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 06/15] target/ppc: Ensure powerpc_checkstop() is only called under TCG Date: Mon, 27 Jan 2025 11:26:10 +0100 Message-ID: <20250127102620.39159-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250127102620.39159-1-philmd@linaro.org> References: <20250127102620.39159-1-philmd@linaro.org> 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/excp_helper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index 8956466db1d..b08cd53688c 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "qemu/main-loop.h" #include "qemu/log.h" +#include "system/tcg.h" #include "system/system.h" #include "system/runstate.h" #include "cpu.h" @@ -30,7 +31,6 @@ #include "trace.h" #ifdef CONFIG_TCG -#include "system/tcg.h" #include "exec/helper-proto.h" #include "exec/cpu_ldst.h" #endif @@ -443,13 +443,11 @@ void helper_attn(CPUPPCState *env) static void powerpc_mcheck_checkstop(CPUPPCState *env) { /* KVM guests always have MSR[ME] enabled */ -#ifdef CONFIG_TCG if (FIELD_EX64(env->msr, MSR, ME)) { return; } - + assert(tcg_enabled()); powerpc_checkstop(env, "machine check with MSR[ME]=0"); -#endif } static void powerpc_excp_40x(PowerPCCPU *cpu, int excp)