mirror of https://gitee.com/openkylin/qemu.git
r2d: fix pflash mapping
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
d1d74664ea
commit
45e7e4bc75
1
hw/r2d.c
1
hw/r2d.c
|
@ -257,6 +257,7 @@ static void r2d_init(ram_addr_t ram_size,
|
||||||
dinfo, NULL);
|
dinfo, NULL);
|
||||||
|
|
||||||
/* onboard flash memory */
|
/* onboard flash memory */
|
||||||
|
dinfo = drive_get(IF_PFLASH, 0, 0);
|
||||||
pflash_cfi02_register(0x0, qemu_ram_alloc(FLASH_SIZE),
|
pflash_cfi02_register(0x0, qemu_ram_alloc(FLASH_SIZE),
|
||||||
dinfo ? dinfo->bdrv : NULL, (16 * 1024),
|
dinfo ? dinfo->bdrv : NULL, (16 * 1024),
|
||||||
FLASH_SIZE >> 16,
|
FLASH_SIZE >> 16,
|
||||||
|
|
Loading…
Reference in New Issue