]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel: Remove unused hThread variable on TCG/WHPX
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 29 Mar 2023 16:46:12 +0000 (18:46 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 28 Jun 2023 11:55:35 +0000 (13:55 +0200)
On Windows hosts, cpu->hThread is assigned but never accessed:
remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230624174121.11508-4-philmd@linaro.org>

accel/tcg/tcg-accel-ops-mttcg.c
accel/tcg/tcg-accel-ops-rr.c
target/i386/whpx/whpx-accel-ops.c

index b320ff003730f5da8ce24562ce712618a6b261fe..b2762620079ddd1670ea11fb6c0e78e971c97029 100644 (file)
@@ -152,8 +152,4 @@ void mttcg_start_vcpu_thread(CPUState *cpu)
 
     qemu_thread_create(cpu->thread, thread_name, mttcg_cpu_thread_fn,
                        cpu, QEMU_THREAD_JOINABLE);
-
-#ifdef _WIN32
-    cpu->hThread = qemu_thread_get_handle(cpu->thread);
-#endif
 }
index 23e4d0f4527eb3fb29d149cbb6c1b5a401704e86..2d523289a8db807d06428982ccf9208ab7244c6a 100644 (file)
@@ -329,9 +329,6 @@ void rr_start_vcpu_thread(CPUState *cpu)
 
         single_tcg_halt_cond = cpu->halt_cond;
         single_tcg_cpu_thread = cpu->thread;
-#ifdef _WIN32
-        cpu->hThread = qemu_thread_get_handle(cpu->thread);
-#endif
     } else {
         /* we share the thread */
         cpu->thread = single_tcg_cpu_thread;
index e8dc4b3a47775741c3a95c1e437cfd3ab34f348f..67cad867207233dbd22ae38a6075f2895bae532a 100644 (file)
@@ -71,9 +71,6 @@ static void whpx_start_vcpu_thread(CPUState *cpu)
              cpu->cpu_index);
     qemu_thread_create(cpu->thread, thread_name, whpx_cpu_thread_fn,
                        cpu, QEMU_THREAD_JOINABLE);
-#ifdef _WIN32
-    cpu->hThread = qemu_thread_get_handle(cpu->thread);
-#endif
 }
 
 static void whpx_kick_vcpu_thread(CPUState *cpu)