summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorPaolo Bonzini2018-12-06 11:56:15 +0100
committerPaolo Bonzini2019-01-11 15:46:55 +0100
commitf481ee2d5e3d77c12a4c9a7756b8c2612aad84c6 (patch)
tree75d7b10ba3de141ccd4dac8459b6a55929772a0d /exec.c
parentqemu/queue.h: leave head structs anonymous unless necessary (diff)
downloadqemu-f481ee2d5e3d77c12a4c9a7756b8c2612aad84c6.tar.gz
qemu-f481ee2d5e3d77c12a4c9a7756b8c2612aad84c6.tar.xz
qemu-f481ee2d5e3d77c12a4c9a7756b8c2612aad84c6.zip
qemu/queue.h: typedef QTAILQ heads
This will be needed when we change the QTAILQ head and elem structs to unions. However, it is also consistent with the usage elsewhere in QEMU for other list head structs (see for example FsMountList). Note that most QTAILQs only need their name in order to do backwards walks. Those do not break with the struct->union change, and anyway the change will also remove the need to name heads when doing backwards walks, so those are not touched here. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index af0cbbab9c..895449f926 100644
--- a/exec.c
+++ b/exec.c
@@ -94,7 +94,8 @@ int target_page_bits;
bool target_page_bits_decided;
#endif
-struct CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);
+CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);
+
/* current CPU in the current thread. It is only valid inside
cpu_exec() */
__thread CPUState *current_cpu;