From ef563ee91ebed6fa37ab018ac5eb61f2b6ffb1b1 Mon Sep 17 00:00:00 2001 From: Nelson Ho Date: Tue, 20 May 2025 11:18:38 -0700 Subject: [PATCH] versal-virt: update compatible string for vxworks 25.03 VxWorks 25.03 updated all references to versal from xilinx versal to amd versal. As a result the old xlnx,versal compat string no longer matches the vxworks board descriptor source. Add the compatible string for amd,versal to the generated dtb so vxworks 25.03 can boot. Signed-off-by: Nelson Ho --- hw/arm/xlnx-versal-virt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c index e83076542f..c1e01ec0cf 100644 --- a/hw/arm/xlnx-versal-virt.c +++ b/hw/arm/xlnx-versal-virt.c @@ -64,6 +64,9 @@ struct VersalVirt { static void fdt_create(VersalVirt *s) { MachineClass *mc = MACHINE_GET_CLASS(s); + static const char * const versal_compat[2] = { + "xlnx,versal", "amd,versal" + }; int i; s->fdt = create_device_tree(&s->fdt_size); @@ -92,7 +95,8 @@ static void fdt_create(VersalVirt *s) qemu_fdt_setprop_cell(s->fdt, "/", "#size-cells", 0x2); qemu_fdt_setprop_cell(s->fdt, "/", "#address-cells", 0x2); qemu_fdt_setprop_string(s->fdt, "/", "model", mc->desc); - qemu_fdt_setprop_string(s->fdt, "/", "compatible", "xlnx,versal"); + qemu_fdt_setprop_string_array(s->fdt, "/", "compatible", + (char **)&versal_compat, ARRAY_SIZE(versal_compat)); } static void fdt_add_clk_node(VersalVirt *s, const char *name,