Message ID | cover.1387160489.git.peter.crosthwaite@xilinx.com |
---|---|
State | New |
Headers | show |
On 16 December 2013 02:28, Peter Crosthwaite <peter.crosthwaite@xilinx.com> wrote: > Hi All, > > This patch series adds support for two board configurable ARM CPU > properties - Configuration Base Address Register and the > hivecs-on-reset. > > The CBAR is needed to fix Zynq and Highbank which both were broken for > linux boot. This series provides the fixes. > > I have added these properties as qdev properties rather than object > properties to pick up the desired writable-until-realize semantic. Looks good to me, thanks. Applied all to target-arm.next. thanks -- PMM
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index c75b425..905483d 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -236,13 +236,13 @@ static void calxeda_init(QEMUMachineInitArgs *args, enum cxmachines machine) cpu = ARM_CPU(object_new(object_class_get_name(oc))); - object_property_set_int(OBJECT(cpu), MPCORE_PERIPHBASE, "reset-cbar", - &err); + object_property_set_bool(OBJECT(cpu), true, "realized", &err); if (err) { error_report("%s", error_get_pretty(err)); exit(1); } - object_property_set_bool(OBJECT(cpu), true, "realized", &err); + object_property_set_int(OBJECT(cpu), MPCORE_PERIPHBASE, "reset-cbar", + &err); if (err) { error_report("%s", error_get_pretty(err));