aspeed: Set CPU memory property explicitly
Signed-off-by: Peter Delevoryas <pdel@fb.com> Message-Id: <20220624003701.1363500-2-pdel@fb.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
75dbf30be8
commit
e37976d733
|
@ -290,6 +290,8 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
object_property_set_int(OBJECT(&s->cpu[i]), "cntfrq", 1125000000,
|
||||
&error_abort);
|
||||
object_property_set_link(OBJECT(&s->cpu[i]), "memory",
|
||||
OBJECT(get_system_memory()), &error_abort);
|
||||
|
||||
if (!qdev_realize(DEVICE(&s->cpu[i]), NULL, errp)) {
|
||||
return;
|
||||
|
|
|
@ -242,6 +242,8 @@ static void aspeed_soc_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
/* CPU */
|
||||
for (i = 0; i < sc->num_cpus; i++) {
|
||||
object_property_set_link(OBJECT(&s->cpu[i]), "memory",
|
||||
OBJECT(get_system_memory()), &error_abort);
|
||||
if (!qdev_realize(DEVICE(&s->cpu[i]), NULL, errp)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue