qemu-e2k/qom
Alexander Graf 9ab880b3a2 QOM: Fail casts for unknown types
When we try to cast an object to an unknown type, fail the cast. Today
we would simply run into an assert().

This fixes a bug on qemu-system-s390x for me that gets triggered by the
audio code looking for PCI and ISA buses.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1367326936-28539-1-git-send-email-agraf@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-04-30 09:40:11 -05:00
..
container.c Make all static TypeInfos const 2013-01-10 15:11:53 -06:00
cpu.c exec: Pass CPUState to cpu_reset_interrupt() 2013-03-12 10:35:55 +01:00
Makefile.objs build: remove universal-obj-y 2013-01-26 13:15:35 +00:00
object.c QOM: Fail casts for unknown types 2013-04-30 09:40:11 -05:00
qom-qobject.c