qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Kwok Cheung Yeung <kcy@codesourcery.com>
Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 0/2] linux-user: Fix MIPS16/microMIPS signal	handling
Date: Sun, 19 May 2013 23:42:07 +0200	[thread overview]
Message-ID: <20130519214207.GF5002@ohm.aurel32.net> (raw)
In-Reply-To: <1368827481-20434-1-git-send-email-kcy@codesourcery.com>

On Fri, May 17, 2013 at 02:51:19PM -0700, Kwok Cheung Yeung wrote:
> 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(-)
> 

Thanks, both queued for 1.6.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

      parent reply	other threads:[~2013-05-19 21:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Aurelien Jarno [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130519214207.GF5002@ohm.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=kcy@codesourcery.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).