mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
aspeed/smc: Remove the 'size' attribute from AspeedSMCFlash
AspeedSMCFlash::size is only used to compute the initial size of the boot_rom region. Not very useful, so directly call memory_region_size() instead. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
a7d78beff4
commit
6bb55e7967
3 changed files with 6 additions and 7 deletions
|
@ -1186,11 +1186,10 @@ static void aspeed_smc_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
fl->id = i;
|
||||
fl->controller = s;
|
||||
fl->size = asc->segments[i].size;
|
||||
memory_region_init_io(&fl->mmio, OBJECT(s), &aspeed_smc_flash_ops,
|
||||
fl, name, fl->size);
|
||||
fl, name, asc->segments[i].size);
|
||||
memory_region_add_subregion(&s->mmio_flash, offset, &fl->mmio);
|
||||
offset += fl->size;
|
||||
offset += asc->segments[i].size;
|
||||
}
|
||||
|
||||
/* DMA support */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue