qemu/qom
Peter Crosthwaite 00e2ceae6c qom/object.c: Allow itf cast with num_itfs = 0
num_interfaces only tells you how many interfaces the concrete child class has
(as defined in the TypeInfo). This means if you have a child class which defines
no interfaces of its own, but its parent has interfaces you cannot cast to those
parent interfaces.

Fixed changing the guard to check the class->interfaces list instead (which is
a complete flattened list of implemented interfaces).

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: a8c2db3b9b1f3c4bb81aca352b69e33260f36545.1361246206.git.peter.crosthwaite@xilinx.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-02-21 16:34:10 -06:00
..
container.c Make all static TypeInfos const 2013-01-10 15:11:53 -06:00
cpu.c cpu: Move current_tb field to CPUState 2013-02-16 14:51:00 +01:00
Makefile.objs build: remove universal-obj-y 2013-01-26 13:15:35 +00:00
object.c qom/object.c: Allow itf cast with num_itfs = 0 2013-02-21 16:34:10 -06:00
qom-qobject.c qom: move include files to include/qom/ 2012-12-19 08:31:32 +01:00