From: Zejun Zhao Date: Mon, 13 Oct 2025 13:32:42 +0000 (+0800) Subject: hw/riscv: Correct mmu-type property of sifive_u harts in device tree X-Git-Tag: v10.2.0-rc1~45^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e41139eaad1d6ea7c52b8ebb5def2dcb84ff57e1;p=thirdparty%2Fqemu.git hw/riscv: Correct mmu-type property of sifive_u harts in device tree Correct mmu-type property of sifive_u harts from Sv48 to Sv39 in 64-bit mode since it's the only supported SATP mode. Signed-off-by: Zejun Zhao Reviewed-by: Daniel Henrique Barboza Message-ID: <20251013133242.1945681-1-jelly.zhao.42@gmail.com> Signed-off-by: Alistair Francis Cc: qemu-stable@nongnu.org --- diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index d69f942cfb..3e1ed209ca 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -176,7 +176,7 @@ static void create_fdt(SiFiveUState *s, const MemMapEntry *memmap, if (is_32_bit) { qemu_fdt_setprop_string(fdt, nodename, "mmu-type", "riscv,sv32"); } else { - qemu_fdt_setprop_string(fdt, nodename, "mmu-type", "riscv,sv48"); + qemu_fdt_setprop_string(fdt, nodename, "mmu-type", "riscv,sv39"); } riscv_isa_write_fdt(&s->soc.u_cpus.harts[cpu - 1], fdt, nodename); } else {