]> Git Repo - qemu.git/commit - include/qemu/queue.h
queue: fix QTAILQ_FOREACH_REVERSE_SAFE
authorPaolo Bonzini <[email protected]>
Mon, 4 Feb 2019 15:40:18 +0000 (16:40 +0100)
committerPaolo Bonzini <[email protected]>
Tue, 5 Feb 2019 15:50:21 +0000 (16:50 +0100)
commit5ed76a4c63db9295c6c5d67895925810050d4a46
treef5f95ef0d7804f1a93c6817e6853790cc82be3e2
parent568534986486e619258c6ff36b4029372624238a
queue: fix QTAILQ_FOREACH_REVERSE_SAFE

The iteration was stopping as soon as prev_var was set to NULL, and
therefore it skipped the first element.  Fortunately, or unfortunately,
we have only one use of QTAILQ_FOREACH_REVERSE_SAFE.  Thus this only
showed up as incorrect register preferences on the very first translation
block that was compiled.

Reported-by: Thomas Huth <[email protected]>
Reviewed-by: Emilio G. Cota <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
include/qemu/queue.h
This page took 0.021833 seconds and 4 git commands to generate.