]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Fix THREAD_SIBLING_FOREACH for multi-socket
authorGlenn Miles <milesg@linux.ibm.com>
Thu, 14 Nov 2024 21:21:19 +0000 (15:21 -0600)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 2 Dec 2024 06:09:12 +0000 (09:09 +0300)
commit2e19aaa96e03753b39fe2eb98684f52b52c7cce0
tree0619f68e6a9324e1998fb9505b929f321cc99d12
parent2b2df86088203a7203fe0c3f4f2d292913804bc4
target/ppc: Fix THREAD_SIBLING_FOREACH for multi-socket

The THREAD_SIBLING_FOREACH macro wasn't excluding threads from other
chips. Add chip_index field to the thread state and add a check for the
new field in the macro.

Fixes: b769d4c8f4c6 ("target/ppc: Add initial flags and helpers for SMT support")
Signed-off-by: Glenn Miles <milesg@linux.ibm.com>
[npiggin: set chip_index for spapr too]
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
(cherry picked from commit 2fc0a78a57731fda50d5b01e16fd68681900f709)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/pnv_core.c
hw/ppc/spapr_cpu_core.c
target/ppc/cpu.h