]> git.proxmox.com Git - qemu.git/commit
linux-user: Fix MIPS ISA transitions during signal handling
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 17 May 2013 21:51:20 +0000 (14:51 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 20 May 2013 16:16:17 +0000 (18:16 +0200)
commitea3164aafccdfdd8a9543787cdfa25fac30a5def
tree9f6c648b8eb0e608f4c3b20e69384fad9c73fa34
parentd8992825aedbb83b7a0e98284e0527bc82a6f7df
linux-user: Fix MIPS ISA transitions during signal handling

Processors supporting the MIPS16 or microMIPS ISAs set bit 0 in target
addresses to indicate that the target is written using a compressed ISA.

During signal handling, when jumping to or returning from a signal
handler, bit 0 of the destination PC is inspected and MIPS_HFLAG_M16 in
hflags cleared or set accordingly.  Bit 0 of the PC is then cleared.

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