hw: Do not include hw/sysbus.h if it is not necessaryMany files include hw/sysbus.h without needing it. Remove the superfluousinclude statements.Signed-off-by: Thomas Huth <thuth@redhat.com>Rev
hw: Do not include hw/sysbus.h if it is not necessaryMany files include hw/sysbus.h without needing it. Remove the superfluousinclude statements.Signed-off-by: Thomas Huth <thuth@redhat.com>Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>Message-Id: <20210327082804.2259480-1-thuth@redhat.com>Signed-off-by: Laurent Vivier <laurent@vivier.eu>
show more ...
meson: convert hw/nubusReviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw: Remove unnecessary DEVICE() castThe DEVICE() macro is defined as: #define DEVICE(obj) OBJECT_CHECK(DeviceState, (obj), TYPE_DEVICE)which expands to: ((DeviceState *)object_dynamic_cast_
hw: Remove unnecessary DEVICE() castThe DEVICE() macro is defined as: #define DEVICE(obj) OBJECT_CHECK(DeviceState, (obj), TYPE_DEVICE)which expands to: ((DeviceState *)object_dynamic_cast_assert((Object *)(obj), (name), __FILE__, __LINE__, __func__))This assertion can only fail when @obj points to something otherthan its stated type, i.e. when we're in undefined behavior country.Remove the unnecessary DEVICE() casts when we already know thepointer is of DeviceState type.Patch created mechanically using spatch with this script: @@ typedef DeviceState; DeviceState *s; @@ - DEVICE(s) + sAcked-by: David Gibson <david@gibson.dropbear.id.au>Acked-by: Paul Durrant <paul@xen.org>Reviewed-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Cédric Le Goater <clg@kaod.org>Acked-by: John Snow <jsnow@redhat.com>Reviewed-by: Richard Henderson <richard.henderson@linaro.org>Reviewed-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>Message-Id: <20200512070020.22782-4-f4bug@amsat.org>
hw/m68k: add Nubus supportThis patch adds basic support for the NuBus bus. This is used by 680x0Macintosh.Co-developed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>Signed-off-by: Mark Ca
hw/m68k: add Nubus supportThis patch adds basic support for the NuBus bus. This is used by 680x0Macintosh.Co-developed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>Signed-off-by: Laurent Vivier <laurent@vivier.eu>Reviewed-by: Thomas Huth <huth@tuxfamily.org>Message-Id: <20191026164546.30020-8-laurent@vivier.eu>
12