diff options
author | Robbin Ehn <rehn@rivosinc.com> | 2024-01-12 21:57:22 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-25 19:13:41 +0300 |
commit | 8bdd3abcf1c989ebe4428190e5789dfbbdf6c6ca (patch) | |
tree | 48d585c429ebb7dfa2a3573e778e22c698dc9ba5 /ui/input-linux.c | |
parent | 99dd4a1563022338229791df41b42e320a38581b (diff) | |
download | qemu-8bdd3abcf1c989ebe4428190e5789dfbbdf6c6ca.zip qemu-8bdd3abcf1c989ebe4428190e5789dfbbdf6c6ca.tar.gz qemu-8bdd3abcf1c989ebe4428190e5789dfbbdf6c6ca.tar.bz2 |
linux-user: Fixed cpu restore with pc 0 on SIGBUS
Commit f4e1168198 (linux-user: Split out host_sig{segv,bus}_handler)
introduced a bug, when returning from host_sigbus_handler the PC is
never set. Thus cpu_loop_exit_restore is called with a zero PC and
we immediate get a SIGSEGV.
Signed-off-by: Robbin Ehn <rehn@rivosinc.com>
Fixes: f4e1168198 ("linux-user: Split out host_sig{segv,bus}_handler")
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Message-Id: <33f27425878fb529b9e39ef22c303f6e0d90525f.camel@rivosinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 6d913158b5023ac948b8fd649d77fc86e28072f6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui/input-linux.c')
0 files changed, 0 insertions, 0 deletions