From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzEg-0002rW-Mj for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMzEW-00084p-2K for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:14 -0400 Received: from afflict.kos.to ([92.243.29.197]:50051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzEV-00084S-GK for qemu-devel@nongnu.org; Mon, 10 Mar 2014 08:23:03 -0400 From: riku.voipio@linaro.org Date: Mon, 10 Mar 2014 14:22:59 +0200 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 7/8] linux-user: correct handling of break exception for MIPS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Petar Jovanovic From: Petar Jovanovic 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 Signed-off-by: Riku Voipio --- 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