All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] hw/arm: use correct base address when setting CBAR
@ 2026-06-18  9:36 Alex Bennée
  2026-06-18 10:07 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Bennée @ 2026-06-18  9:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alex Bennée, Arnd Bergmann, Tyrone Ting, Hao Wu,
	Peter Maydell, open list:Nuvoton NPCM7xx

This should point at the base of the Cortex-A9 MPCore private address
space. If it doesn't we will confuse the Linux kernel as it probes the
SCU registers and erroneously assumes the system is a buggy Aegis SOC
and nerf the emission of SEV instructions, deadlocking any WFE's in
the kernel (or QEMU smpboot code).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Suggested-by: Arnd Bergmann <arnd@linaro.org>
---
 hw/arm/npcm7xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c
index c2bbcd89dbc..c27f149c04a 100644
--- a/hw/arm/npcm7xx.c
+++ b/hw/arm/npcm7xx.c
@@ -492,7 +492,7 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp)
     /* CPUs */
     for (i = 0; i < nc->num_cpus; i++) {
         object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar",
-                                NPCM7XX_GIC_CPU_IF_ADDR, &error_abort);
+                                NPCM7XX_CPUP_BA, &error_abort);
         object_property_set_bool(OBJECT(&s->cpu[i]), "reset-hivecs", true,
                                  &error_abort);
 
-- 
2.47.3



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

end of thread, other threads:[~2026-06-18 10:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18  9:36 [RFC PATCH] hw/arm: use correct base address when setting CBAR Alex Bennée
2026-06-18 10:07 ` Philippe Mathieu-Daudé
2026-06-18 10:17   ` Peter Maydell
2026-06-18 10:41     ` Philippe Mathieu-Daudé
2026-06-18 10:37   ` Alex Bennée
2026-06-18 10:49     ` Philippe Mathieu-Daudé

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.