diff options
author | Peter Delevoryas <pdel@fb.com> | 2022-06-30 09:21:13 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-06-30 09:21:13 +0200 |
commit | e37976d733f75eab74018e6632f29c0335a4ddcd (patch) | |
tree | 32d35557543f63b5e1fd5539ec08510db8c0d5c8 /hw | |
parent | 75dbf30be85f5163814b61aae87f93898d5fc53d (diff) | |
download | qemu-e37976d733f75eab74018e6632f29c0335a4ddcd.zip qemu-e37976d733f75eab74018e6632f29c0335a4ddcd.tar.gz qemu-e37976d733f75eab74018e6632f29c0335a4ddcd.tar.bz2 |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/arm/aspeed_ast2600.c | 2 | ||||
-rw-r--r-- | hw/arm/aspeed_soc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c index bb5927c3..a4d90da 100644 --- a/hw/arm/aspeed_ast2600.c +++ b/hw/arm/aspeed_ast2600.c @@ -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; diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c index 3e6055a..a53a0ca 100644 --- a/hw/arm/aspeed_soc.c +++ b/hw/arm/aspeed_soc.c @@ -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; } |