aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Lee <steven_lee@aspeedtech.com>2025-05-23 17:31:42 +0800
committerCédric Le Goater <clg@redhat.com>2025-05-25 23:39:11 +0200
commitb21d68c34ec25391f6c1a588bdb5c88bd24bb87f (patch)
tree5ceff7b6f6402af8ba5492854ddc2c081bc9d640
parentbb1747a39b162bdfbf33d53846ed4e7a99f2e75f (diff)
downloadqemu-b21d68c34ec25391f6c1a588bdb5c88bd24bb87f.zip
qemu-b21d68c34ec25391f6c1a588bdb5c88bd24bb87f.tar.gz
qemu-b21d68c34ec25391f6c1a588bdb5c88bd24bb87f.tar.bz2
hw/arm/fby35: Map BMC memory into system memory
Add the BMC memory region as a subregion of system_memory so that modules relying on system memory can operate correctly. Signed-off-by: Steven Lee <steven_lee@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250523093144.991408-6-steven_lee@aspeedtech.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
-rw-r--r--hw/arm/fby35.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/fby35.c b/hw/arm/fby35.c
index e123fa6..c14fc2e 100644
--- a/hw/arm/fby35.c
+++ b/hw/arm/fby35.c
@@ -77,6 +77,7 @@ static void fby35_bmc_init(Fby35State *s)
memory_region_init(&s->bmc_memory, OBJECT(&s->bmc), "bmc-memory",
UINT64_MAX);
+ memory_region_add_subregion(get_system_memory(), 0, &s->bmc_memory);
memory_region_init_ram(&s->bmc_dram, OBJECT(&s->bmc), "bmc-dram",
FBY35_BMC_RAM_SIZE, &error_abort);