« Previous | Next » 

Revision 0be6bfac

ID0be6bfac6262900425c10847de513ee2490078d3

Added by Peter Maydell about 11 years ago

qdev: Implement (variable length) array properties

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 "arrayname0",
"arrayname1"... are created so the user of the device can
then set the values of the individual array elements.

Signed-off-by: Peter Maydell <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences