From: riku.voipio@linaro.org
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Petar Jovanovic <petar.jovanovic@imgtec.com>
Subject: [Qemu-devel] [PATCH 7/8] linux-user: correct handling of break exception for MIPS
Date: Mon, 10 Mar 2014 14:22:59 +0200 [thread overview]
Message-ID: <b51910baf227f0fd64abfa7ad6d8e00150a18194.1394453724.git.riku.voipio@linaro.org> (raw)
In-Reply-To: <cover.1394453723.git.riku.voipio@linaro.org>
From: Petar Jovanovic <petar.jovanovic@imgtec.com>
Exception with break instruction has not been correctly propagated as
SIGTRAP. This resolves crash issues with examples that use break
instruction on MIPS.
Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
linux-user/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/main.c b/linux-user/main.c
index 9192977..c19e7fb 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2384,6 +2384,10 @@ static int do_break(CPUMIPSState *env, target_siginfo_t *info,
ret = 0;
break;
default:
+ info->si_signo = TARGET_SIGTRAP;
+ info->si_errno = 0;
+ queue_signal(env, info->si_signo, &*info);
+ ret = 0;
break;
}
--
1.8.1.2
next prev parent reply other threads:[~2014-03-10 12:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-10 12:22 [Qemu-devel] [PULL 0/8] linux-user update for 2.0 riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 1/8] linux-user/signal.c: Fix AArch64 big-endian FP register restore riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 2/8] linux-user: AArch64: Implement SA_RESTORER for signal handlers riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 3/8] linux-user: Don't use UID16 on AArch64 riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 4/8] linux-user: Fix getresuid, getresgid if !USE_UID16 riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 5/8] linux-user: Implement sendmmsg syscall riku.voipio
2014-03-10 12:22 ` [Qemu-devel] [PATCH 6/8] linux-user: translate signal number on return from sigtimedwait riku.voipio
2014-03-10 12:22 ` riku.voipio [this message]
2014-03-10 12:23 ` [Qemu-devel] [PATCH 8/8] linux-user: set minimum kernel version to 2.6.32 riku.voipio
2014-03-10 16:43 ` [Qemu-devel] [PULL 0/8] linux-user update for 2.0 Peter Maydell
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=b51910baf227f0fd64abfa7ad6d8e00150a18194.1394453724.git.riku.voipio@linaro.org \
--to=riku.voipio@linaro.org \
--cc=petar.jovanovic@imgtec.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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).