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,
|
object_property_set_int(OBJECT(&s->cpu[i]), "cntfrq", 1125000000,
|
||||||
&error_abort);
|
&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)) {
|
if (!qdev_realize(DEVICE(&s->cpu[i]), NULL, errp)) {
|
||||||
return;
|
return;
|
||||||
|
@ -242,6 +242,8 @@ static void aspeed_soc_realize(DeviceState *dev, Error **errp)
|
|||||||
|
|
||||||
/* CPU */
|
/* CPU */
|
||||||
for (i = 0; i < sc->num_cpus; i++) {
|
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)) {
|
if (!qdev_realize(DEVICE(&s->cpu[i]), NULL, errp)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user