mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
record/replay: fix race condition on test_aarch64_reverse_debug
Ensures EVENT_INSTRUCTION written to replay.bin before EVENT_SHUTDOWN_HOST_QMP Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2921 Signed-off-by: Vladimir Lukianov <1844144@gmail.com> Message-ID: <20250603125459.17688-1-1844144@gmail.com> [AJB: fix re-base file mode] Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
committed by
Alex Bennée
parent
4d3eb329cc
commit
41f8f2be27
@@ -263,6 +263,8 @@ bool replay_has_interrupt(void)
|
||||
|
||||
void replay_shutdown_request(ShutdownCause cause)
|
||||
{
|
||||
replay_save_instructions();
|
||||
|
||||
if (replay_mode == REPLAY_MODE_RECORD) {
|
||||
g_assert(replay_mutex_locked());
|
||||
replay_put_event(EVENT_SHUTDOWN + cause);
|
||||
|
||||
Reference in New Issue
Block a user