diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-27 11:26:17 +0100 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2025-03-11 22:43:31 +1000 |
commit | 92c787de34d6103613fa7453765603c94a0494e6 (patch) | |
tree | e580a46f6bbe790a71c9e083c78609f066457441 | |
parent | b8d6a858fef723616f5a0e244ef0802700ab88d4 (diff) | |
download | qemu-92c787de34d6103613fa7453765603c94a0494e6.zip qemu-92c787de34d6103613fa7453765603c94a0494e6.tar.gz qemu-92c787de34d6103613fa7453765603c94a0494e6.tar.bz2 |
target/ppc: Make powerpc_excp() prototype public
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é <philmd@linaro.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Message-ID: <20250127102620.39159-14-philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
-rw-r--r-- | target/ppc/excp_helper.c | 2 | ||||
-rw-r--r-- | target/ppc/internal.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index 6598525..9ba5335 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -1571,7 +1571,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; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 62186bc..9012d38 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -291,6 +291,8 @@ 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); + #endif /* !CONFIG_USER_ONLY */ FIELD(GER_MSK, XMSK, 0, 4) |