• P
    qdev: Implement (variable length) array properties · 0be6bfac
    Peter Maydell 提交于
    Add support for declaring array properties for qdev devices.
    These work by defining an initial static property 'len-arrayname'
    which the user of the device should set to the desired size
    of the array. When this property is set, memory is allocated
    for the array elements, and dynamic properties "arrayname[0]",
    "arrayname[1]"... are created so the user of the device can
    then set the values of the individual array elements.
    Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
    0be6bfac
qdev-properties.c 26.9 KB