From: Philippe Mathieu-Daudé Date: Tue, 26 Aug 2025 14:16:30 +0000 (+0200) Subject: hw/xtensa/xtfpga: Have xtfpga_init() only initialize MMU X-Git-Tag: v10.2.0-rc1~65^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18727804c06575e6a69566c593e79bfa4a197adb;p=thirdparty%2Fqemu.git 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é Reviewed-by: Max Filippov Message-Id: <20250925013513.67780-1-philmd@linaro.org> --- diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 6efffae466..55de1a7a07 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -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);