]> git.proxmox.com Git - mirror_qemu.git/blobdiff - exec.c
Expose thread_id in info cpus
[mirror_qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index c5358c3ec0e856d00ec7df6cffe2c341d3f0d920..964ce318fbc713de6d6bf09cb31b4f5846ee1f48 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -638,6 +638,9 @@ void cpu_exec_init(CPUState *env)
     env->numa_node = 0;
     QTAILQ_INIT(&env->breakpoints);
     QTAILQ_INIT(&env->watchpoints);
+#ifndef CONFIG_USER_ONLY
+    env->thread_id = qemu_get_thread_id();
+#endif
     *penv = env;
 #if defined(CONFIG_USER_ONLY)
     cpu_list_unlock();