]> git.proxmox.com Git - qemu.git/commit
linux-user: Save the correct resume address for MIPS signal handling
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 17 May 2013 21:51:21 +0000 (14:51 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 20 May 2013 16:16:17 +0000 (18:16 +0200)
commit1239b472bb0dba8060f1af29d40dafbc1b2860d4
tree6e2d54f5a06b03a0d274af56cbda5ccb180eeb96
parentea3164aafccdfdd8a9543787cdfa25fac30a5def
linux-user: Save the correct resume address for MIPS signal handling

The current ISA mode needs to be saved in bit 0 of the resume address.
If the current instruction happens to be in a branch delay slot, then
the address of the preceding jump instruction should be stored instead.
exception_resume_pc already does both of these tasks, so it is
made available and reused.

MIPS_HFLAG_BMASK in hflags is cleared, otherwise QEMU may treat the
first instruction of the signal handler as a delay slot instruction.

Signed-off-by: Kwok Cheung Yeung <kcy@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/signal.c
target-mips/cpu.h
target-mips/helper.c