diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-03 06:03:45 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-10-31 01:02:45 +0100 |
commit | 1b14670a38a2265d3dd573b5e2d611621a5929f0 (patch) | |
tree | ac7fc411945dcdc36fbecee64157eb239ea3a630 /target-ppc/excp_helper.c | |
parent | 5c26a5b3033fbbbfc033f7d8d0b50713c31517d1 (diff) | |
download | qemu-1b14670a38a2265d3dd573b5e2d611621a5929f0.zip qemu-1b14670a38a2265d3dd573b5e2d611621a5929f0.tar.gz qemu-1b14670a38a2265d3dd573b5e2d611621a5929f0.tar.bz2 |
target-ppc: Pass PowerPCCPU to cpu_ppc_hypercall
Adapt emulate_spapr_hypercall() accordingly.
Needed for changing spapr_hypercall() argument type to PowerPCCPU.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc/excp_helper.c')
-rw-r--r-- | target-ppc/excp_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c index d19a46b..5e34ad0 100644 --- a/target-ppc/excp_helper.c +++ b/target-ppc/excp_helper.c @@ -33,7 +33,7 @@ /*****************************************************************************/ /* PowerPC Hypercall emulation */ -void (*cpu_ppc_hypercall)(CPUPPCState *); +void (*cpu_ppc_hypercall)(PowerPCCPU *); /*****************************************************************************/ /* Exception processing */ @@ -239,7 +239,7 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp) dump_syscall(env); lev = env->error_code; if ((lev == 1) && cpu_ppc_hypercall) { - cpu_ppc_hypercall(env); + cpu_ppc_hypercall(cpu); return; } if (lev == 1 || (lpes0 == 0 && lpes1 == 0)) { |