|
@@ -174,8 +174,7 @@ static void xlnx_zynqmp_pmu_init(MachineState *machine)
|
|
pmu_ram);
|
|
pmu_ram);
|
|
|
|
|
|
/* Create the PMU device */
|
|
/* Create the PMU device */
|
|
- object_initialize_child(OBJECT(machine), "pmu", pmu,
|
|
|
|
- sizeof(XlnxZynqMPPMUSoCState),
|
|
|
|
|
|
+ object_initialize_child(OBJECT(machine), "pmu", pmu, sizeof(*pmu),
|
|
TYPE_XLNX_ZYNQMP_PMU_SOC, &error_abort, NULL);
|
|
TYPE_XLNX_ZYNQMP_PMU_SOC, &error_abort, NULL);
|
|
object_property_set_bool(OBJECT(pmu), true, "realized", &error_fatal);
|
|
object_property_set_bool(OBJECT(pmu), true, "realized", &error_fatal);
|
|
|
|
|