From patchwork Thu Jan 23 21:56:07 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: 859400 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp494817wrq; Thu, 23 Jan 2025 13:58:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXQdmkQZ5VoEVa2iqTBv1oGcXLmLuZzIxX//5m9r99D0RJsvXm4b7N81ukKVv6e3i68Qo1P/A==@linaro.org X-Google-Smtp-Source: AGHT+IGwoJzG/dzZZ43CvPK7Zjfh+y5Y60POZDbL8xZH0SkMAbb0EXZzkvaoe8DZnGMz0aIquRkr X-Received: by 2002:a05:6214:4988:b0:6dd:5f90:16bd with SMTP id 6a1803df08f44-6e1b22349dbmr419109166d6.41.1737669530442; Thu, 23 Jan 2025 13:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737669530; cv=none; d=google.com; s=arc-20240605; b=R03TZzhslBHMYGot0JMoFR/L0BDwycIQnbT5EX3V8E1dkOs51Y5luKe38DftbYLpcE dcKCseGUJbealT3bxeJVijOLFhkivZBaeeJbC5jONZ75JlumUwwqHmiEmPkMHNX8BC3A sypiWEEk+P0BeKKZDDbdxLyBkjRR7xJ6BLqty8VQSg+guL8sqpw8gcQznfIZ4bs+XWR6 Zo/V+aiqGi8pElW+xT7B9Zfb3hL70yZZk4io3OQgEzh0UbHHEEygEiHQCxfK5RfEOaQ7 0BoTyIo4z/XvdhPk2cagwryfCKSNrB7X6ln9PF8g/0H6TZzIZCh05W5RKO2xtgb55Exn uEJw== 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=Im7eIVxJk5Ymo2cFyecUnjgdjN1o5ulRwaFN1Y9Xi8s=; fh=f6VbfoskI6VsEtYPQBX0qo8ZjRYhBMT+vpdrU6ZtLU4=; b=ZiLv6z1PwOhu25J5bp0AQHyvSxOz7645ibfpBqJ7pLdqn3dZe/+OLSPMXPIvNYFd39 smcDzIWBpMgWk0b6sk+iLOzIQv0bnnD3lHCS5tAMsI+H2Jv7FUzwLmqjpp4LDPMlokPf H+Hfg4WsXb/HpBe8gsoIn75ki+Bw2ufA2Uekz+Z2rU0PAc9hxM2zH4NcLigHz17VGyLn aSBkHGMwsN7QWRNx0gerfJEJ87eMAJhaejGtp5zwO6Dmt+elpHyzZKfU94/BMxHeJAQg MGJuzklyc91VVuOcLimeexmkrCD7rGiMm/kgRUw9W7CQj2D2kk2DnWT5liBUpKPwgS/w 4lIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H0hUp4rH; 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 6a1803df08f44-6e2061341fbsi6203786d6.462.2025.01.23.13.58.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Jan 2025 13:58:50 -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=H0hUp4rH; 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 1tb5Cy-0006TU-Cs; Thu, 23 Jan 2025 16:57:52 -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 1tb5CS-0005Gb-VS for qemu-devel@nongnu.org; Thu, 23 Jan 2025 16:57:21 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tb5CR-0002to-AQ for qemu-devel@nongnu.org; Thu, 23 Jan 2025 16:57:20 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-436249df846so9783575e9.3 for ; Thu, 23 Jan 2025 13:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737669437; x=1738274237; 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=Im7eIVxJk5Ymo2cFyecUnjgdjN1o5ulRwaFN1Y9Xi8s=; b=H0hUp4rHxW7HwzkRSha5KxflKZ6IlDcGNXY4/PVJ4Ob6VFyrhX3qAvTA18Dpmf1Gm6 OW+seXtkFNn5oqPCVHDxIu3m3ENYJ3AYLcoT9fvknh4ZaOc1xi9BtmobP+bkG4ByQcZR WfZvcgEJBilOLivQN//oe8uTQWxTam7GsIQG0UwF6azzPWpj9oG59ge58E3KAEPD1u4l IYW2KgyfdHfCSuObKzH6xmW8Pc0h+JPo2u8lTf2IbaO89ieGttVfDl+kxJd4BnajswEb 14K+aOfZc5sqpiggpLM+5M6ef/17RmplWHBTNt0Cvob/YpatV4DWa9PFI7UL55hFcsd4 qKVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737669437; x=1738274237; 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=Im7eIVxJk5Ymo2cFyecUnjgdjN1o5ulRwaFN1Y9Xi8s=; b=E4bO7Da8DndpSPmcCgO5VYuNyGH7Fb9izhxg0hGQlATEpRPC77a581wj/ijP/WUKFT EGBwmPtwqfLZumdU1mb9bn24slT21i81oYOPDp8TfZlXA+9UI+CEHDeaF1jJ779mle3X 2ELf3mA30GNx+UOwddpTsA2LnqdwS1OnBmLYNy5IXV0OoIm1VLAhTAVjGbrsdWP8Epnz hC50VAeQzp+U1TNgPm4UI6fpqtWs1A0gVYiPkUn9gCGvRAHEtgSEkRB6lC0SUFJvJ+X1 CcGPKV4TnmcTIlbAk/H6HohjSlWQdvhYFwm3ibost0zr6ji9hICNO55JX+KpUU/Lp5jQ KPaw== X-Gm-Message-State: AOJu0Ywz8Kw7Butk2h7iZQ0Y3Xxbv7SDy//CTDThbmjEt50S+IkW6z0M dmfFHZd/gQ8LIdWHLpfcHbQmFE2w82ensjNtnhYz9y/LlH8Lk+6iXCSdEpGFMtdcgv2Z54SJ53+ YQ3c= X-Gm-Gg: ASbGncs0+TAE/xKf5k41YFdjL24kL1WCFbQXwRsoA8mZPD283j3mrZ7Dx9OT3ACKjGO PGJilIkpUnL1PV8UjwsJixNekAAEJggQaJq6sZIzuoPlnKWFafYat9AcnQn0mw93v6jcft3NsN3 xpYuAqFAzWg5MAQ3J97en6ibk/yWGN1fOCnwG95sSVi+nMyXkme7cSOvGFCFp0QnduWWF5nQkxt f0R2BDBJWrWOl2dSx/Omj5RpZHyMORLA8+0+7kPP3XJ8aK/2AF8uTvqOujn/vIAOwxvxg5JFxyP kEplH1r1JbPnLGy1xRkcVjf7JQSLbSoNxBpULjISRmWm0I3Y+p7Ork8= X-Received: by 2002:a05:600c:450d:b0:436:840b:261c with SMTP id 5b1f17b1804b1-438914340afmr234916505e9.19.1737669436711; Thu, 23 Jan 2025 13:57:16 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438bd47f367sm5061595e9.7.2025.01.23.13.57.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Jan 2025 13:57:16 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Harsh Prateek Bora , Richard Henderson , qemu-ppc@nongnu.org, Nicholas Piggin , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 13/15] target/ppc: Make powerpc_excp() prototype public Date: Thu, 23 Jan 2025 22:56:07 +0100 Message-ID: <20250123215609.30432-14-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250123215609.30432-1-philmd@linaro.org> References: <20250123215609.30432-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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 In order to move TCG specific code dependent on powerpc_excp() in the next commit, expose its prototype in "internal.h". Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/internal.h | 1 + target/ppc/excp_helper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 3f9dc6f514e..779305f09d1 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -291,6 +291,7 @@ bool ppc_cpu_debug_check_breakpoint(CPUState *cs); bool ppc_cpu_debug_check_watchpoint(CPUState *cs, CPUWatchpoint *wp); G_NORETURN void powerpc_checkstop(CPUPPCState *env, const char *reason); +void powerpc_excp(PowerPCCPU *cpu, int excp); bool is_prefix_insn_excp(CPUPPCState *env, int excp); void ppc_tcg_hv_emu(CPUPPCState *env, target_ulong *new_msr, int *srr0, int *srr1); diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index 661d9650d9f..f0e734e1412 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -1494,7 +1494,7 @@ static inline void powerpc_excp_books(PowerPCCPU *cpu, int excp) } #endif /* TARGET_PPC64 */ -static void powerpc_excp(PowerPCCPU *cpu, int excp) +void powerpc_excp(PowerPCCPU *cpu, int excp) { CPUPPCState *env = &cpu->env;