Skip to contentSkip to conversation

hw/xtensa/xtfpga: Have xtfpga_init() only initialize MMU

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Sep 25, 2025 – Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/xtensa/xtfpga: Have xtfpga_init() only initialize MMU

cpu_reset() should not be used with an unrealized CPU. Here we simply want to initialize the MMU, not the CPU, so just call reset_mmu().

---
 hw/xtensa/xtfpga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xtensa/xtfpga.c +1 -1
index 6efffae466b..55de1a7a073 100644
@@ -268,7 +268,7 @@ static void xtfpga_init(const XtfpgaBoardDesc *board, MachineState *machine)
         /* Need MMU initialized prior to ELF loading,
          * so that ELF gets loaded into virtual addresses
          */
-        cpu_reset(CPU(cpu));
+        reset_mmu(cenv);
     }
     if (smp_cpus > 1) {
         extints = xtensa_mx_pic_get_extints(mx_pic);
Signature · 1 line
2.51.0