mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 07:40:34 +00:00
eepro100: fix mapping of flash memory
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
ae543b498c
commit
269eba0771
@ -1621,11 +1621,11 @@ static void pci_mmio_map(PCIDevice * pci_dev, int region_num,
|
|||||||
"size=0x%08"FMT_PCIBUS", type=%d\n",
|
"size=0x%08"FMT_PCIBUS", type=%d\n",
|
||||||
region_num, addr, size, type));
|
region_num, addr, size, type));
|
||||||
|
|
||||||
if (region_num == 0) {
|
assert(region_num == 0 || region_num == 2);
|
||||||
/* Map control / status registers. */
|
|
||||||
|
/* Map control / status registers and flash. */
|
||||||
cpu_register_physical_memory(addr, size, s->mmio_index);
|
cpu_register_physical_memory(addr, size, s->mmio_index);
|
||||||
s->region[region_num] = addr;
|
s->region[region_num] = addr;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nic_can_receive(VLANClientState *nc)
|
static int nic_can_receive(VLANClientState *nc)
|
||||||
|
Loading…
Reference in New Issue
Block a user