mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
mainstone: fix name of the allocated memory for roms
Mainstone board has two flash chips (emulated by two ram regions), however currently code tries to allocate them with the same name, which fails. Fix that to make mainstone emulation work again. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
2a3c633c1e
commit
f75d216a80
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ static void mainstone_common_init(ram_addr_t ram_size,
|
|||
}
|
||||
|
||||
if (!pflash_cfi01_register(mainstone_flash_base[i],
|
||||
qemu_ram_alloc(NULL, "mainstone.flash",
|
||||
qemu_ram_alloc(NULL, i ? "mainstone.flash1" :
|
||||
"mainstone.flash0",
|
||||
MAINSTONE_FLASH),
|
||||
dinfo->bdrv, sector_len,
|
||||
MAINSTONE_FLASH / sector_len, 4, 0, 0, 0, 0,
|
||||
|
|
Loading…
Reference in a new issue