diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2009-08-10 13:37:36 -0700 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-24 08:21:42 -0500 |
commit | 0b5c1ce8467384327b80a55218d3e57f48985990 (patch) | |
tree | e3e278afdab1b30143bb51fe4434edeea198c688 /target-ppc | |
parent | unify popen/fopen qemu wrappers (diff) | |
download | qemu-kvm-0b5c1ce8467384327b80a55218d3e57f48985990.tar.gz qemu-kvm-0b5c1ce8467384327b80a55218d3e57f48985990.tar.bz2 qemu-kvm-0b5c1ce8467384327b80a55218d3e57f48985990.zip |
cleanup cpu-exec.c, part 0/N: consolidate handle_cpu_signal
handle_cpu_signal is very nearly copy-paste code for each target, with a
few minor variations. This patch sets up appropriate defaults for a
generic handle_cpu_signal and provides overrides for particular targets
that did things differently. Fixing things like the persistent (XXX:
use sigsetjmp) should now become somewhat easier.
Previous comments on this patch suggest that the "activate soft MMU for
this block" comments refer to defunct functionality. I have removed
such blocks for the appropriate targets in this patch.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 420ea869a..27f523f6f 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -706,6 +706,7 @@ int cpu_ppc_signal_handler (int host_signum, void *pinfo, void *puc); int cpu_ppc_handle_mmu_fault (CPUPPCState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu); +#define cpu_handle_mmu_fault cpu_ppc_handle_mmu_fault int get_physical_address (CPUPPCState *env, mmu_ctx_t *ctx, target_ulong vaddr, int rw, int access_type); void do_interrupt (CPUPPCState *env); |