|
@@ -1195,7 +1195,7 @@ static void virt_flash_fdt(VirtMachineState *vms,
|
|
qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay");
|
|
qemu_fdt_setprop_string(ms->fdt, nodename, "secure-status", "okay");
|
|
g_free(nodename);
|
|
g_free(nodename);
|
|
|
|
|
|
- nodename = g_strdup_printf("/flash@%" PRIx64, flashbase);
|
|
|
|
|
|
+ nodename = g_strdup_printf("/flash@%" PRIx64, flashbase + flashsize);
|
|
qemu_fdt_add_subnode(ms->fdt, nodename);
|
|
qemu_fdt_add_subnode(ms->fdt, nodename);
|
|
qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "cfi-flash");
|
|
qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "cfi-flash");
|
|
qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg",
|
|
qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg",
|