diff options
author | Igor Mitsyanko <i.mitsyanko@samsung.com> | 2012-02-28 15:57:10 +0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-03-14 15:30:38 -0500 |
commit | aca59af612840772f18598363b65a25bf02bb569 (patch) | |
tree | 1a0c14611c1eb9451a31331bec2a9836b3f6171e /json-lexer.c | |
parent | 9512e4a9edef2d9b59eb10a03184cd90a34f62d5 (diff) | |
download | hqemu-aca59af612840772f18598363b65a25bf02bb569.zip hqemu-aca59af612840772f18598363b65a25bf02bb569.tar.gz |
qom: if @instance_size==0, assign size of object to parent object size
QOM documentation states that for objects of type with @instance_size == 0 size
will be assigned to match parent object's size. But currently this feauture is
not implemented and qemu asserts during creation of object with zero instance_size.
Set appropriate value for type instance_size during type_class_init() call.
object_initialize_with_type() must call type_class_init() before asserting
type->instance_size, and object_new_with_type() must call type_class_init() before
object allocation.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'json-lexer.c')
0 files changed, 0 insertions, 0 deletions