Commit c020bf4696 for qemu.org

commit c020bf46966ae4dbbf82efbc4c5f3435a2fda42f
Author: Zenghui Yu <zenghui.yu@linux.dev>
Date:   Tue Nov 24 20:05:09 2026 +0800

    hw/intc/arm_gicv5: Fix value of the IRS_DEVARCH register

    The GICv5 spec says bits [31:21] of IRS_DEVARCH are 0x23b. We wrongly
    shifted it by 31 instead of 21, so guests read 0x80105a19 rather than
    0x47705a19.

    Cc: qemu-stable@nongnu.org
    Fixes: 22232793ecb8 ("hw/intc/arm_gicv5: Implement CoreSight ID registers")
    Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Message-id: 20261124120509.19746-1-zenghui.yu@linux.dev
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

diff --git a/hw/intc/arm_gicv5.c b/hw/intc/arm_gicv5.c
index 26dcbc82ed..59b8596bf0 100644
--- a/hw/intc/arm_gicv5.c
+++ b/hw/intc/arm_gicv5.c
@@ -318,7 +318,7 @@ FIELD(ICSR, HM, 5, 1)
 FIELD(ICSR, PRIORITY, 11, 5)
 FIELD(ICSR, IAFFID, 32, 16)

-#define IRS_DEVARCH_VALUE ((0x23b << 31) | (0x1 << 20) | 0x5a19)
+#define IRS_DEVARCH_VALUE ((0x23b << 21) | (0x1 << 20) | 0x5a19)

 static uint32_t gicv5_idreg(int regoffset)
 {