cleanup cpu-exec.c, part 0/N: consolidate handle_cpu_signal
authorNathan Froyd <froydnj@codesourcery.com>
Mon, 10 Aug 2009 20:37:36 +0000 (13:37 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 24 Aug 2009 13:21:42 +0000 (08:21 -0500)
commit0b5c1ce8467384327b80a55218d3e57f48985990
treee3e278afdab1b30143bb51fe4434edeea198c688
parent7f79dd281c834013f32cff0f5d98135b87cf470e
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>
cpu-exec.c
target-alpha/cpu.h
target-arm/cpu.h
target-cris/cpu.h
target-i386/cpu.h
target-m68k/cpu.h
target-microblaze/cpu.h
target-mips/cpu.h
target-ppc/cpu.h
target-sh4/cpu.h
target-sparc/cpu.h