diff options
| author | Steven Lee <steven_lee@aspeedtech.com> | 2025-05-23 17:31:42 +0800 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-05-25 23:39:11 +0200 |
| commit | b21d68c34ec25391f6c1a588bdb5c88bd24bb87f (patch) | |
| tree | 5ceff7b6f6402af8ba5492854ddc2c081bc9d640 /hw | |
| parent | bb1747a39b162bdfbf33d53846ed4e7a99f2e75f (diff) | |
| download | focaccia-qemu-b21d68c34ec25391f6c1a588bdb5c88bd24bb87f.tar.gz focaccia-qemu-b21d68c34ec25391f6c1a588bdb5c88bd24bb87f.zip | |
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>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/arm/fby35.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/fby35.c b/hw/arm/fby35.c index e123fa69e1..c14fc2efe9 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); |