summaryrefslogtreecommitdiffstats
path: root/include/hw/core/sysemu-cpu-ops.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-12 19:27:02 +0200
committerRichard Henderson2021-09-22 04:36:44 +0200
commit0596fa11f16c81d5237da64e59e8583a971dfe1c (patch)
treeeecf329bcd90a550a50a899fb1516b2a307ca095 /include/hw/core/sysemu-cpu-ops.h
parentinclude/exec: Move cpu_signal_handler declaration (diff)
downloadqemu-0596fa11f16c81d5237da64e59e8583a971dfe1c.tar.gz
qemu-0596fa11f16c81d5237da64e59e8583a971dfe1c.tar.xz
qemu-0596fa11f16c81d5237da64e59e8583a971dfe1c.zip
accel/tcg: Restrict cpu_handle_halt() to sysemu
Commit 372579427a5 ("tcg: enable thread-per-vCPU") added the following comment describing EXCP_HALTED in qemu_tcg_cpu_thread_fn(): case EXCP_HALTED: /* during start-up the vCPU is reset and the thread is * kicked several times. If we don't ensure we go back * to sleep in the halted state we won't cleanly * start-up when the vCPU is enabled. * * cpu->halted should ensure we sleep in wait_io_event */ g_assert(cpu->halted); break; qemu_wait_io_event() is sysemu-specific, so we can restrict the cpu_handle_halt() call in cpu_exec() to system emulation. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210912172731.789788-2-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/core/sysemu-cpu-ops.h')
0 files changed, 0 insertions, 0 deletions