]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/xlnx-versal: Use qdev_prop_set_array()
authorKevin Wolf <kwolf@redhat.com>
Thu, 9 Nov 2023 17:42:36 +0000 (18:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 Nov 2023 17:19:13 +0000 (18:19 +0100)
commit2394c782a9040891429d0f160cf695bf00379a0d
tree334491993fb699fdf82cfcfd1d9eb81fb0def283
parent3c86b9dadc378db207d36f6f9c988d6886c8a2e3
hw/arm/xlnx-versal: Use qdev_prop_set_array()

Instead of manually setting "foo-len" and "foo[i]" properties, build a
QList and use the new qdev_prop_set_array() helper to set the whole
array property with a single call.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20231109174240.72376-8-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/arm/xlnx-versal.c