[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/14] accel/tcg: Remove pointless initialization of cflags_next_
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 12/14] accel/tcg: Remove pointless initialization of cflags_next_tb |
Date: |
Sat, 27 Apr 2024 17:57:12 +0200 |
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>
---
hw/core/cpu-common.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
index a72d48d9e1..c4175cc4b9 100644
--- a/hw/core/cpu-common.c
+++ b/hw/core/cpu-common.c
@@ -255,7 +255,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;
qemu_mutex_init(&cpu->work_mutex);
qemu_lockcnt_init(&cpu->in_ioctl_lock);
--
2.41.0
- [PATCH 08/14] exec/cpu: Extract page-protection definitions to page-prot-common.h, (continued)
- [PATCH 08/14] exec/cpu: Extract page-protection definitions to page-prot-common.h, Philippe Mathieu-Daudé, 2024/04/27
- [RFC PATCH 09/14] exec/cpu: Restrict user-specific page definitions, Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 11/14] accel/tcg: Use cpu_loop_exit_requested() in cpu_loop_exec_tb(), Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation, Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 12/14] accel/tcg: Remove pointless initialization of cflags_next_tb,
Philippe Mathieu-Daudé <=
- [PATCH 13/14] accel/tcg: Reset TCG specific fields in tcg_cpu_reset_hold(), Philippe Mathieu-Daudé, 2024/04/27
- [PATCH 14/14] accel/tcg: Access tcg_cflags with getter / setter, Philippe Mathieu-Daudé, 2024/04/27