From: Stefan Weil Date: Tue, 6 Apr 2010 11:44:08 +0000 (+0200) Subject: eepro100: fix mapping of flash memory X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~8150^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=269eba077104df9b4d6faedb4da1c2aa978e2b1d;p=sdk%2Femulator%2Fqemu.git eepro100: fix mapping of flash memory Signed-off-by: Stefan Weil Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/eepro100.c b/hw/eepro100.c index c705929..949ca4e 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1621,11 +1621,11 @@ static void pci_mmio_map(PCIDevice * pci_dev, int region_num, "size=0x%08"FMT_PCIBUS", type=%d\n", region_num, addr, size, type)); - if (region_num == 0) { - /* Map control / status registers. */ - cpu_register_physical_memory(addr, size, s->mmio_index); - s->region[region_num] = addr; - } + assert(region_num == 0 || region_num == 2); + + /* Map control / status registers and flash. */ + cpu_register_physical_memory(addr, size, s->mmio_index); + s->region[region_num] = addr; } static int nic_can_receive(VLANClientState *nc)