]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ppc/xive: Fix typo in crowd block level calculation
authorNicholas Piggin <npiggin@gmail.com>
Mon, 17 Mar 2025 03:20:02 +0000 (13:20 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 20 Mar 2025 09:55:11 +0000 (19:55 +1000)
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>
hw/intc/xive.c

index c77df2c1f8cc6577e2cbc7d6251e9191ecfa6699..e86f2749328a069f7f4a0e03c28f939df77996fa 100644 (file)
@@ -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;