aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 06:13:14 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 01:02:45 +0100
commitaa100fa4c9901c6a88d24f48d485dbe0147b317d (patch)
tree21dc0254c23e767ad6b1a58fa0859a50a6240403 /target-ppc
parent1b14670a38a2265d3dd573b5e2d611621a5929f0 (diff)
downloadqemu-aa100fa4c9901c6a88d24f48d485dbe0147b317d.zip
qemu-aa100fa4c9901c6a88d24f48d485dbe0147b317d.tar.gz
qemu-aa100fa4c9901c6a88d24f48d485dbe0147b317d.tar.bz2
spapr: Pass PowerPCCPU to spapr_hypercall()
Needed for changing the hypercall handlers' argument type to PowerPCCPU. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/kvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index 6aacff0..3f5df57 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -817,7 +817,8 @@ int kvm_arch_handle_exit(CPUPPCState *env, struct kvm_run *run)
#ifdef CONFIG_PSERIES
case KVM_EXIT_PAPR_HCALL:
dprintf("handle PAPR hypercall\n");
- run->papr_hcall.ret = spapr_hypercall(env, run->papr_hcall.nr,
+ run->papr_hcall.ret = spapr_hypercall(ppc_env_get_cpu(env),
+ run->papr_hcall.nr,
run->papr_hcall.args);
ret = 0;
break;