These unit addresses should have been in hex, not decimal, as per de
facto convention [1]. Fix them.
Link: https://lore.kernel.org/devicetree-spec/CAL_JsqJFv3+UJ-bjLGk0i7Wc+spsowCrqQZ_s3P4gN8r1W-Q-w@mail.gmail.com/ # [1]
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
---
hw/mips/boston.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/mips/boston.c b/hw/mips/boston.c
index 4579df23eb..9ef3f6c814 100644
--- a/hw/mips/boston.c
+++ b/hw/mips/boston.c
@@ -542,7 +542,7 @@ static const void *create_fdt(BostonState *s,
qemu_fdt_setprop_cell(fdt, "/cpus", "#address-cells", 0x1);
for (cpu = 0; cpu < ms->smp.cpus; cpu++) {
- name = g_strdup_printf("/cpus/cpu@%d", cpu);
+ name = g_strdup_printf("/cpus/cpu@%x", (unsigned)cpu);
qemu_fdt_add_subnode(fdt, name);
qemu_fdt_setprop_string(fdt, name, "compatible", "img,mips");
qemu_fdt_setprop_string(fdt, name, "status", "okay");
--
2.53.0