mbox series

[0/2] hw/loongarch/virt: Improve fdt table creation

Message ID 20241126072939.4188548-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series hw/loongarch/virt: Improve fdt table creation | expand

Message

bibo mao Nov. 26, 2024, 7:29 a.m. UTC
Here move fdt table creation from spotted places to machine done
notification, since all objects finish to create when machine is done.

Also create fdt table for CPU objects with possible_cpu_arch_ids()
function rather than smp.cpus, since command 
-smp x, -device la464-loongarch-cpu can be used.

Bibo Mao (2):
  hw/loongarch/virt: Create fdt table on machine creation done
    notification
  hw/loongarch/virt: Improve fdt table creation for CPU object

 hw/loongarch/virt.c | 142 +++++++++++++++++++++++++-------------------
 1 file changed, 82 insertions(+), 60 deletions(-)


base-commit: 791e3837c1105aec4e328674aad32e34056957e2