aboutsummaryrefslogtreecommitdiff
path: root/hw/r2d.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-06-17 22:19:53 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-06-29 23:26:34 +0200
commit45e7e4bc75c3fd39dbb841fd9bf4a02927982e95 (patch)
tree01f15a6fb54c61cbc2a980089e5f9b63f263cff2 /hw/r2d.c
parentd1d74664ea99cdc571afee12e31c8625595765b0 (diff)
r2d: fix pflash mapping
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/r2d.c')
-rw-r--r--hw/r2d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/r2d.c b/hw/r2d.c
index 38c4f6a051..bc2575656c 100644
--- a/hw/r2d.c
+++ b/hw/r2d.c
@@ -257,6 +257,7 @@ static void r2d_init(ram_addr_t ram_size,
dinfo, NULL);
/* onboard flash memory */
+ dinfo = drive_get(IF_PFLASH, 0, 0);
pflash_cfi02_register(0x0, qemu_ram_alloc(FLASH_SIZE),
dinfo ? dinfo->bdrv : NULL, (16 * 1024),
FLASH_SIZE >> 16,