OSDN Git Service

accel/tcg/cpu-exec: Fix precise single-stepping after interrupt
authorLuc Michel <lmichel@kalray.eu>
Fri, 25 Feb 2022 00:52:42 +0000 (14:52 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Feb 2022 18:04:06 +0000 (08:04 -1000)
commit5b7b197c87cefbd24bd1936614fd4e00ccc279ab
tree7db1adc3806b5d8482baf480ef4d1f76bf9029ce
parent8929906e212cbe606e361cbd32917dcbe5bb6dd0
accel/tcg/cpu-exec: Fix precise single-stepping after interrupt

In some cases, cpu->exit_request can be false after handling the
interrupt, leading to another TB being executed instead of returning
to the main loop.

Fix this by returning true unconditionally when in single-step mode.

Fixes: ba3c35d9c402 ("tcg/cpu-exec: precise single-stepping after an interrupt")
Signed-off-by: Luc Michel <lmichel@kalray.eu>
Message-Id: <20220214132656.11397-1-lmichel@kalray.eu>
[rth: Unlock iothread mutex; simplify indentation]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c