diff mbox series

[1/3] accel/tcg: Remove pointless initialization of cflags_next_tb

Message ID 20241230153929.87137-2-philmd@linaro.org
State New
Headers show
Series cpus: Avoid re-initializing fields cleared in cpu_common_reset_hold() | expand

Commit Message

Philippe Mathieu-Daudé Dec. 30, 2024, 3:39 p.m. UTC
cflags_next_tb is always re-initialized in the CPU Reset()
handler in cpu_common_reset_hold(), no need to initialize
it in cpu_common_initfn().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240427155714.53669-13-philmd@linaro.org>
---
 hw/core/cpu-common.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
index 1edc16f65c8..10d34455a85 100644
--- a/hw/core/cpu-common.c
+++ b/hw/core/cpu-common.c
@@ -245,7 +245,6 @@  static void cpu_common_initfn(Object *obj)
     /* the default value is changed by qemu_init_vcpu() for system-mode */
     cpu->nr_cores = 1;
     cpu->nr_threads = 1;
-    cpu->cflags_next_tb = -1;
 
     /* allocate storage for thread info, initialise condition variables */
     cpu->thread = g_new0(QemuThread, 1);