summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2025-03-17 13:20:02 +1000
committerNicholas Piggin <npiggin@gmail.com>2025-03-20 19:55:11 +1000
commit033a5649b45690d09bde5cdf15cb83453f6ac811 (patch)
treee233ec40d75b457a316f8780eea10e827d9b020c
parentfb802acdc8b162084e9e60d42aeba79097d14d2b (diff)
downloadfocaccia-qemu-033a5649b45690d09bde5cdf15cb83453f6ac811.tar.gz
focaccia-qemu-033a5649b45690d09bde5cdf15cb83453f6ac811.zip
ppc/xive: Fix typo in crowd block level calculation
I introduced this bug when "tidying" the original patch, not Frederic.
Paper bag for me.

Fixes: 9cb7f6ebed60 ("ppc/xive2: Support group-matching when looking for target")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
-rw-r--r--hw/intc/xive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/xive.c b/hw/intc/xive.c
index c77df2c1f8..e86f274932 100644
--- a/hw/intc/xive.c
+++ b/hw/intc/xive.c
@@ -1686,7 +1686,7 @@ static uint8_t xive_get_group_level(bool crowd, bool ignore,
          * Supported crowd sizes are 2^1, 2^2, and 2^4. 2^3 is not supported.
          * HW will encode level 4 as the value 3.  See xive2_pgofnext().
          */
-        switch (level) {
+        switch (blk) {
         case 1:
         case 2:
             break;