hw/xtensa/xtfpga: Have xtfpga_init() only initialize MMU
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().
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xtensa/xtfpga.c +1 -1
@@ -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
Quoted 9 lines · Philippe Mathieu-Daudé
cpu_reset()should not be used with an unrealized CPU. Here we simply want to initialize the MMU, not the CPU, so just callreset_mmu().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Max Filippov <[email protected]>
Signature · 2 lines
Thanks. -- Max
Quoted 8 lines · Philippe Mathieu-Daudé
cpu_reset()should not be used with an unrealized CPU. Here we simply want to initialize the MMU, not the CPU, so just callreset_mmu().Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch queued, thanks.