diff options
author | Andreas Färber <afaerber@suse.de> | 2013-09-02 14:14:24 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:20:48 +0100 |
commit | d0e39c5d70c4e0a9c41ef816a19887fd8f55c665 (patch) | |
tree | 6918611170ed6be0fe5dc916b44fb9fa4d612743 /target-ppc/mmu-hash32.c | |
parent | 611d4f996f650294483ff4b01c3140651e2dd29c (diff) | |
download | hqemu-d0e39c5d70c4e0a9c41ef816a19887fd8f55c665.zip hqemu-d0e39c5d70c4e0a9c41ef816a19887fd8f55c665.tar.gz |
target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc/mmu-hash32.c')
-rw-r--r-- | target-ppc/mmu-hash32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-ppc/mmu-hash32.c b/target-ppc/mmu-hash32.c index aa87084..6a4d6a8 100644 --- a/target-ppc/mmu-hash32.c +++ b/target-ppc/mmu-hash32.c @@ -381,10 +381,11 @@ static hwaddr ppc_hash32_pte_raddr(target_ulong sr, ppc_hash_pte32_t pte, return (rpn & ~mask) | (eaddr & mask); } -int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong eaddr, int rwx, +int ppc_hash32_handle_mmu_fault(PowerPCCPU *cpu, target_ulong eaddr, int rwx, int mmu_idx) { - CPUState *cs = CPU(ppc_env_get_cpu(env)); + CPUState *cs = CPU(cpu); + CPUPPCState *env = &cpu->env; target_ulong sr; hwaddr pte_offset; ppc_hash_pte32_t pte; |