All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/intc/arm_gicv5: Fix value of the IRS_DEVARCH register
@ 2026-11-24 12:05 Zenghui Yu
  2026-11-24 12:13 ` Philippe Mathieu-Daudé
  2026-11-24 12:56 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Zenghui Yu @ 2026-11-24 12:05 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: peter.maydell, Zenghui Yu

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.

Fixes: 22232793ecb8 ("hw/intc/arm_gicv5: Implement CoreSight ID registers")
Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
---
 hw/intc/arm_gicv5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 {
-- 
2.56.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 12:05 [PATCH] hw/intc/arm_gicv5: Fix value of the IRS_DEVARCH register Zenghui Yu
2026-11-24 12:13 ` Philippe Mathieu-Daudé
2026-11-24 12:56 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.