From 0b5c1ce8467384327b80a55218d3e57f48985990 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Mon, 10 Aug 2009 13:37:36 -0700 Subject: 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 Signed-off-by: Anthony Liguori --- target-sparc/cpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'target-sparc') diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 6654eca..63aead9 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -413,6 +413,7 @@ void cpu_lock(void); void cpu_unlock(void); int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw, int mmu_idx, int is_softmmu); +#define cpu_handle_mmu_fault cpu_sparc_handle_mmu_fault target_ulong mmu_probe(CPUSPARCState *env, target_ulong address, int mmulev); void dump_mmu(CPUSPARCState *env); -- cgit v1.1