qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] linux-user: Fix MIPS16/microMIPS signal handling
@ 2013-05-17 21:51 Kwok Cheung Yeung
  2013-05-17 21:51 ` [Qemu-devel] [PATCH v2 1/2] linux-user: Fix MIPS ISA transitions during " Kwok Cheung Yeung
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kwok Cheung Yeung @ 2013-05-17 21:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kwok Cheung Yeung, peter.maydell, riku.voipio, aurelien

These patches fix various issues related to signal handling in user mode
emulation for the MIPS architecture.

- When a MIPS16/microMIPS signal handler is called, the program segfaults
because the PC is set to an invalid address.
- When returning from a signal handler, the ISA mode is not set to that
of the resume instruction.
- When the faulting instruction is in a branch delay slot, the resume
address is set to that of the instruction rather than the branch,
resulting in incorrect behaviour.  The flag indicating that the
instruction is in a delay slot is also not cleared.

v1 -> v2:
- Add fixes for signal return and delay slot instructions
- Refactor code

Kwok Cheung Yeung (2):
  linux-user: Fix MIPS ISA transitions during signal handling
  linux-user: Save the correct resume address for MIPS signal handling

 linux-user/signal.c  | 16 +++++++++++++++-
 target-mips/cpu.h    |  1 +
 target-mips/helper.c |  4 ++--
 3 files changed, 18 insertions(+), 3 deletions(-)

-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-19 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 21:51 [Qemu-devel] [PATCH v2 0/2] linux-user: Fix MIPS16/microMIPS signal handling Kwok Cheung Yeung
2013-05-17 21:51 ` [Qemu-devel] [PATCH v2 1/2] linux-user: Fix MIPS ISA transitions during " Kwok Cheung Yeung
2013-05-17 21:51 ` [Qemu-devel] [PATCH v2 2/2] linux-user: Save the correct resume address for MIPS " Kwok Cheung Yeung
2013-05-19 21:42 ` [Qemu-devel] [PATCH v2 0/2] linux-user: Fix MIPS16/microMIPS " Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).