[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] MTTCG qemu-softmmu aborted on watchpoint hit by atomic
From: |
Max Filippov |
Subject: |
Re: [Qemu-devel] MTTCG qemu-softmmu aborted on watchpoint hit by atomic instruction |
Date: |
Tue, 15 Jan 2019 09:20:57 -0800 |
On Tue, Jan 15, 2019 at 6:51 AM Emilio G. Cota <address@hidden> wrote:
> Can you please try the appended?
>
> diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
> index 870027d435..a5258bcbc8 100644
> --- a/accel/tcg/cpu-exec.c
> +++ b/accel/tcg/cpu-exec.c
> @@ -266,6 +266,9 @@ void cpu_exec_step_atomic(CPUState *cpu)
> #ifndef CONFIG_SOFTMMU
> tcg_debug_assert(!have_mmap_lock());
> #endif
> + if (qemu_mutex_iothread_locked()) {
> + qemu_mutex_unlock_iothread();
> + }
> assert_no_pages_locked();
> }
It works, thank you!
Tested-by: Max Filippov <address@hidden>
--
Thanks.
-- Max