diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-22 15:54:11 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-07-25 08:12:25 -0500 |
commit | 4759ab6b2d1b99714bb12409a6021e7a9d0bd473 (patch) | |
tree | 10539937f2728b4f0a235ff54666a23e1e51a656 /hw | |
parent | 0cd8eaa011eac66e45ce51cab4a857b175152625 (diff) | |
download | hqemu-4759ab6b2d1b99714bb12409a6021e7a9d0bd473.zip hqemu-4759ab6b2d1b99714bb12409a6021e7a9d0bd473.tar.gz |
sh4: do not use isa_mmio
This fixes endianness bugs in I/O port access (for sh4eb).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1374501278-31549-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sh4/sh_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/sh4/sh_pci.c b/hw/sh4/sh_pci.c index c33a72f..53e9eb8 100644 --- a/hw/sh4/sh_pci.c +++ b/hw/sh4/sh_pci.c @@ -129,7 +129,8 @@ static int sh_pci_device_init(SysBusDevice *dev) "sh_pci", 0x224); memory_region_init_alias(&s->memconfig_a7, OBJECT(s), "sh_pci.2", &s->memconfig_p4, 0, 0x224); - isa_mmio_setup(&s->isa, 0x40000); + memory_region_init_alias(&s->isa, OBJECT(s), "sh_pci.isa", + get_system_io(), 0, 0x40000); sysbus_init_mmio(dev, &s->memconfig_p4); sysbus_init_mmio(dev, &s->memconfig_a7); s->iobr = 0xfe240000; |