aboutsummaryrefslogtreecommitdiff
path: root/accel/dummy-cpus.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-29 16:42:01 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-19 12:28:59 +0100
commit396f66f99dfb405bd2a29582d043d2a6b7b37d6d (patch)
tree96cc1363f9cedb316f0f4cca222d40096bdb5dab /accel/dummy-cpus.c
parentb94b8c604b6d4e6071569c4c00a1f4c841028934 (diff)
downloadqemu-396f66f99dfb405bd2a29582d043d2a6b7b37d6d.zip
qemu-396f66f99dfb405bd2a29582d043d2a6b7b37d6d.tar.gz
qemu-396f66f99dfb405bd2a29582d043d2a6b7b37d6d.tar.bz2
accel: Do not set CPUState::can_do_io in non-TCG accels
'can_do_io' is specific to TCG. It was added to other accelerators in 626cf8f4c6 ("icount: set can_do_io outside TB execution"), then likely copy/pasted in commit c97d6d2cdf ("i386: hvf: add code base from Google's QEMU repository"). Having it set in non-TCG code is confusing, so remove it from QTest / HVF / KVM. Fixes: 626cf8f4c6 ("icount: set can_do_io outside TB execution") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231129205037.16849-1-philmd@linaro.org>
Diffstat (limited to 'accel/dummy-cpus.c')
-rw-r--r--accel/dummy-cpus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/accel/dummy-cpus.c b/accel/dummy-cpus.c
index f4b0ec5..20519f1 100644
--- a/accel/dummy-cpus.c
+++ b/accel/dummy-cpus.c
@@ -27,7 +27,6 @@ static void *dummy_cpu_thread_fn(void *arg)
bql_lock();
qemu_thread_get_self(cpu->thread);
cpu->thread_id = qemu_get_thread_id();
- cpu->neg.can_do_io = true;
current_cpu = cpu;
#ifndef _WIN32