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 /hw | |
parent | 5c26a5b3033fbbbfc033f7d8d0b50713c31517d1 (diff) | |
download | hqemu-1b14670a38a2265d3dd573b5e2d611621a5929f0.zip hqemu-1b14670a38a2265d3dd573b5e2d611621a5929f0.tar.gz |
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')
-rw-r--r-- | hw/spapr.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |