projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83434f
)
hw/loongarch/virt: Fix FDT memory node address width
author
Jiaxun Yang
<jiaxun.yang@flygoat.com>
Mon, 20 May 2024 21:06:31 +0000
(22:06 +0100)
committer
Song Gao
<gaosong@loongson.cn>
Thu, 23 May 2024 01:30:41 +0000
(09:30 +0800)
Higher bits for memory nodes were omitted at qemu_fdt_setprop_cells.
Cc: qemu-stable@nongnu.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <
20240520
-loongarch-fdt-memnode-v1-1-
5ea9be93911e
@flygoat.com>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c
patch
|
blob
|
history
diff --git
a/hw/loongarch/virt.c
b/hw/loongarch/virt.c
index e3bdf085b5d03f56920f81dd63a48cc1ddabd7e4..3e6e93edf3237522e86ebba94ecc5eebdfe7dd26 100644
(file)
--- a/
hw/loongarch/virt.c
+++ b/
hw/loongarch/virt.c
@@
-464,7
+464,8
@@
static void fdt_add_memory_node(MachineState *ms,
char *nodename = g_strdup_printf("/memory@%" PRIx64, base);
qemu_fdt_add_subnode(ms->fdt, nodename);
- qemu_fdt_setprop_cells(ms->fdt, nodename, "reg", 0, base, 0, size);
+ qemu_fdt_setprop_cells(ms->fdt, nodename, "reg", base >> 32, base,
+ size >> 32, size);
qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "memory");
if (ms->numa_state && ms->numa_state->num_nodes) {