qemu-e2k/hw/core
Eduardo Habkost dd98b71f48 qdev: Fix crash when using non-device class name on -global
This fixes the following crash:

    $ qemu-system-x86_64 -global container.xxx=y
    hw/core/qdev-properties-system.c:399:qdev_add_one_global: Object 0x7f7eff234100 is not an instance of type device
    Aborted (core dumped)

New behavior will be to just warn, just like when non-existing clas
names are used:

    $ qemu-system-x86_64 -global container.xxx=y
    qemu-system-x86_64: Warning: "-global container.xxx=y" not used

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: Don Slutz <dslutz@verizon.com>
2014-07-06 09:13:54 +03:00
..
empty_slot.c
fw-path-provider.c
hotplug.c
irq.c irq: Slim conversion of qemu_irq to QOM 2014-07-01 04:12:48 +02:00
loader.c
machine.c
Makefile.objs
null-machine.c
ptimer.c
qdev-properties-system.c qdev: Fix crash when using non-device class name on -global 2014-07-06 09:13:54 +03:00
qdev-properties.c
qdev.c qdev: Don't abort() in case globals can't be set 2014-07-06 09:13:54 +03:00
stream.c
sysbus.c
uboot_image.h