aboutsummaryrefslogtreecommitdiff
path: root/cpu-target.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2024-05-30 20:42:48 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-04 10:02:39 +0200
commit39e4bc4cdf83175e4a2d73e32c8d6785b80ebeef (patch)
treea3ed30646f63f39673713096951f18e247ad2672 /cpu-target.c
parenta4c2735f35b8b2bca5784ff9bf754a99b654c9a8 (diff)
downloadqemu-39e4bc4cdf83175e4a2d73e32c8d6785b80ebeef.zip
qemu-39e4bc4cdf83175e4a2d73e32c8d6785b80ebeef.tar.gz
qemu-39e4bc4cdf83175e4a2d73e32c8d6785b80ebeef.tar.bz2
cpu-target: don't set cpu->thread_id to bogus value
The thread_id isn't valid until the threads are created. There is no point setting it here. The only thing that cares about the thread_id is qmp_query_cpus_fast. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20240530194250.1801701-4-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'cpu-target.c')
-rw-r--r--cpu-target.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cpu-target.c b/cpu-target.c
index 5af120e..499facf 100644
--- a/cpu-target.c
+++ b/cpu-target.c
@@ -241,7 +241,6 @@ void cpu_exec_initfn(CPUState *cpu)
cpu->num_ases = 0;
#ifndef CONFIG_USER_ONLY
- cpu->thread_id = qemu_get_thread_id();
cpu->memory = get_system_memory();
object_ref(OBJECT(cpu->memory));
#endif