mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/arm/aspeed_ast27x0-fc: Map ca35 memory into system memory
Map the CA35 memory region as a subregion of system_memory to ensure a valid FlatView. This prevents failures in APIs that rely on the global memory view, such as rom_check_and_register_reset(). 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-5-steven_lee@aspeedtech.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
221d22d830
commit
bb1747a39b
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ static void ast2700fc_ca35_init(MachineState *machine)
|
|||
|
||||
memory_region_init(&s->ca35_memory, OBJECT(&s->ca35), "ca35-memory",
|
||||
UINT64_MAX);
|
||||
memory_region_add_subregion(get_system_memory(), 0, &s->ca35_memory);
|
||||
|
||||
if (!memory_region_init_ram(&s->ca35_dram, OBJECT(&s->ca35), "ca35-dram",
|
||||
AST2700FC_BMC_RAM_SIZE, &error_abort)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue