summaryrefslogtreecommitdiffstats
path: root/hw/arm/bcm2836.c
diff options
context:
space:
mode:
authorThomas Huth2018-07-16 18:18:41 +0200
committerPeter Maydell2018-07-16 18:18:41 +0200
commitcccf96c3d4263125e6d2c23ad264001ca2e6fffa (patch)
treea789db0ff17a3050a128f47bc130e0b42784c10c /hw/arm/bcm2836.c
parenthw/intc/arm_gic: Fix handling of GICD_ITARGETSR (diff)
downloadqemu-cccf96c3d4263125e6d2c23ad264001ca2e6fffa.tar.gz
qemu-cccf96c3d4263125e6d2c23ad264001ca2e6fffa.tar.xz
qemu-cccf96c3d4263125e6d2c23ad264001ca2e6fffa.zip
hw/arm/bcm2836: Mark the bcm2836 / bcm2837 devices with user_creatable = false
These devices are currently causing some problems when a user is trying to hot-plug or introspect them during runtime. Since these devices can not be instantiated by the user at all (they need to be wired up in code instead), we should mark them with user_creatable = false anyway, then we avoid at least the crashes with the hot-plugging. The introspection problem will be handled by a separate patch. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-id: 1531415537-26037-1-git-send-email-thuth@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/bcm2836.c')
-rw-r--r--hw/arm/bcm2836.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm/bcm2836.c b/hw/arm/bcm2836.c
index 6805a7d7c8..45d9e40c45 100644
--- a/hw/arm/bcm2836.c
+++ b/hw/arm/bcm2836.c
@@ -185,6 +185,8 @@ static void bcm283x_class_init(ObjectClass *oc, void *data)
bc->info = data;
dc->realize = bcm2836_realize;
dc->props = bcm2836_props;
+ /* Reason: Must be wired up in code (see raspi_init() function) */
+ dc->user_creatable = false;
}
static const TypeInfo bcm283x_type_info = {