From f00f72d641288c68a19ac8efda1a4b02e6cbc933 Mon Sep 17 00:00:00 2001 From: Andrew Baumann Date: Tue, 24 Nov 2015 15:59:07 -0800 Subject: [PATCH] bcm2835: minor fixes (missed updates from refactoring) --- hw/arm/bcm2835.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/arm/bcm2835.c b/hw/arm/bcm2835.c index 39b7041858..033e935dab 100644 --- a/hw/arm/bcm2835.c +++ b/hw/arm/bcm2835.c @@ -13,8 +13,6 @@ #include "hw/sysbus.h" #include "exec/address-spaces.h" -#define DEFAULT_VCRAM_SIZE 0x4000000 - static void bcm2835_init(Object *obj) { BCM2835State *s = BCM2835(obj); @@ -35,6 +33,13 @@ static void bcm2835_realize(DeviceState *dev, Error **errp) Error *err = NULL; /* common peripherals from bcm2835 */ + object_property_set_int(OBJECT(&s->peripherals), s->vcram_size, + "vcram-size", &err); + if (err) { + error_propagate(errp, err); + return; + } + object_property_set_bool(OBJECT(&s->peripherals), true, "realized", &err); if (err) { error_propagate(errp, err); -- 2.11.4.GIT