aboutsummaryrefslogtreecommitdiff
path: root/hw/spapr.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-03 06:03:45 +0200
committerAndreas Färber <afaerber@suse.de>2012-10-31 01:02:45 +0100
commit1b14670a38a2265d3dd573b5e2d611621a5929f0 (patch)
treeac7fc411945dcdc36fbecee64157eb239ea3a630 /hw/spapr.c
parent5c26a5b3033fbbbfc033f7d8d0b50713c31517d1 (diff)
downloadqemu-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 'hw/spapr.c')
-rw-r--r--hw/spapr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/spapr.c b/hw/spapr.c
index 8d0ad3c..30707ee 100644
--- a/hw/spapr.c
+++ b/hw/spapr.c
@@ -576,8 +576,10 @@ static uint64_t translate_kernel_address(void *opaque, uint64_t addr)
return (addr & 0x0fffffff) + KERNEL_LOAD_ADDR;
}
-static void emulate_spapr_hypercall(CPUPPCState *env)
+static void emulate_spapr_hypercall(PowerPCCPU *cpu)
{
+ CPUPPCState *env = &cpu->env;
+
if (msr_pr) {
hcall_dprintf("Hypercall made with MSR[PR]=1\n");
env->gpr[3] = H_PRIVILEGE;