]> Git Repo - qemu.git/commitdiff
linux-user: correct handling of break exception for MIPS
authorPetar Jovanovic <[email protected]>
Fri, 28 Feb 2014 14:25:32 +0000 (15:25 +0100)
committerRiku Voipio <[email protected]>
Mon, 3 Mar 2014 21:09:04 +0000 (23:09 +0200)
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 <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/main.c

index 919297736c807f9b098771f732a35324913dc236..c19e7fb7047c38c95e76711f6abb389da48f87f0 100644 (file)
@@ -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;
     }
 
This page took 0.032274 seconds and 4 git commands to generate.