Message ID | 20250127102620.39159-14-philmd@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | target/ppc: Move TCG code from excp_helper.c to tcg-excp_helper.c | expand |
On 1/27/25 15:56, Philippe Mathieu-Daudé wrote: > 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> > --- > 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 0e66b29ec68..b8997ba31db 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); > > #if defined(TARGET_PPC64) > bool is_prefix_insn_excp(CPUPPCState *env, int excp); > 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; >
diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 0e66b29ec68..b8997ba31db 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); #if defined(TARGET_PPC64) bool is_prefix_insn_excp(CPUPPCState *env, int excp); 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;
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> --- target/ppc/internal.h | 1 + target/ppc/excp_helper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)