diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-22 15:54:18 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-07-25 08:12:27 -0500 |
commit | ee77854fa52b8cc7c9a0d318be467a5b5741bc04 (patch) | |
tree | 64a9df9a7aa499b5c6d1728deeb2ae6223731344 /hw/mips/gt64xxx_pci.c | |
parent | 3959496874e7d1ee84e3428ddf1a10dfef972c1d (diff) | |
download | qemu-ee77854fa52b8cc7c9a0d318be467a5b5741bc04.zip qemu-ee77854fa52b8cc7c9a0d318be467a5b5741bc04.tar.gz qemu-ee77854fa52b8cc7c9a0d318be467a5b5741bc04.tar.bz2 |
mips_malta: do not use isa_mmio
This fixes endianness bugs in I/O port access.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1374501278-31549-9-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mips/gt64xxx_pci.c')
-rw-r--r-- | hw/mips/gt64xxx_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c index 5843417..3da2e67 100644 --- a/hw/mips/gt64xxx_pci.c +++ b/hw/mips/gt64xxx_pci.c @@ -304,7 +304,8 @@ static void gt64120_pci_mapping(GT64120State *s) s->PCI0IO_length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21; isa_mem_base = s->PCI0IO_start; if (s->PCI0IO_length) { - isa_mmio_setup(&s->PCI0IO_mem, s->PCI0IO_length); + memory_region_init_alias(&s->PCI0IO_mem, OBJECT(s), "isa_mmio", + get_system_io(), 0, s->PCI0IO_length); memory_region_add_subregion(get_system_memory(), s->PCI0IO_start, &s->PCI0IO_mem); } |