aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-27 11:26:12 +0100
committerNicholas Piggin <npiggin@gmail.com>2025-03-11 22:43:31 +1000
commit94a37684a59e320a32ba948e9f8d75810c6dcdea (patch)
tree131f891ac6543bf1dc0ece5cd0b4edb6fb34c1b4
parent2f96c00b61a48803f3963214eac0ae04a7b7ee82 (diff)
downloadqemu-94a37684a59e320a32ba948e9f8d75810c6dcdea.zip
qemu-94a37684a59e320a32ba948e9f8d75810c6dcdea.tar.gz
qemu-94a37684a59e320a32ba948e9f8d75810c6dcdea.tar.bz2
target/ppc: Remove raise_exception_ra()
Introduced in commit db789c6cd33 ("ppc: Provide basic raise_exception_* functions"), raise_exception_ra() has never been used. Remove as dead code. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-ID: <20250127102620.39159-9-philmd@linaro.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
-rw-r--r--target/ppc/cpu.h2
-rw-r--r--target/ppc/excp_helper.c6
2 files changed, 0 insertions, 8 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 25b1e6d..505b589 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -2756,8 +2756,6 @@ static inline void cpu_get_tb_cpu_state(CPUPPCState *env, vaddr *pc,
#endif
G_NORETURN void raise_exception(CPUPPCState *env, uint32_t exception);
-G_NORETURN void raise_exception_ra(CPUPPCState *env, uint32_t exception,
- uintptr_t raddr);
G_NORETURN void raise_exception_err(CPUPPCState *env, uint32_t exception,
uint32_t error_code);
G_NORETURN void raise_exception_err_ra(CPUPPCState *env, uint32_t exception,
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index 236e507..9e1a2ec 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -2528,12 +2528,6 @@ void raise_exception(CPUPPCState *env, uint32_t exception)
raise_exception_err_ra(env, exception, 0, 0);
}
-void raise_exception_ra(CPUPPCState *env, uint32_t exception,
- uintptr_t raddr)
-{
- raise_exception_err_ra(env, exception, 0, raddr);
-}
-
#ifdef CONFIG_TCG
void helper_raise_exception_err(CPUPPCState *env, uint32_t exception,
uint32_t error_code)