From 45e7e4bc75c3fd39dbb841fd9bf4a02927982e95 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 17 Jun 2010 22:19:53 +0200 Subject: r2d: fix pflash mapping Signed-off-by: Aurelien Jarno --- hw/r2d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/r2d.c b/hw/r2d.c index 38c4f6a..bc25756 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, -- cgit v1.1