From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38750 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdPEn-00034V-JO for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:37:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdPEm-0001ne-LF for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:37:21 -0500 Received: from mail-fx0-f45.google.com ([209.85.161.45]:33606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdPEm-0001n8-DR for qemu-devel@nongnu.org; Thu, 13 Jan 2011 10:37:20 -0500 Received: by fxm12 with SMTP id 12so1835565fxm.4 for ; Thu, 13 Jan 2011 07:37:18 -0800 (PST) From: Dmitry Eremin-Solenikov Date: Thu, 13 Jan 2011 18:37:10 +0300 Message-Id: <1294933032-12757-1-git-send-email-dbaryshkov@gmail.com> Subject: [Qemu-devel] [PATCH 1/3] mainstone: fix name of the allocated memory for roms List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- hw/mainstone.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c index efa2959..d8e41cf 100644 --- a/hw/mainstone.c +++ b/hw/mainstone.c @@ -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, -- 1.7.2.3