diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-28 18:17:04 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-08-28 18:34:39 +0300 |
commit | 73c92f9aecc099aa81ee05a2bdb30bb43184cc28 (patch) | |
tree | 18a15e20635b0f0dfe7e4d832d397b08d755f1e2 /hw | |
parent | 56a7a874e962e28522857fbf72eaefb1a07e2001 (diff) |
sh_pci: Fix sh_pci memory alias confusion
The a7 area was set up as an alias of itself, rather than the p4 area. This
sent the memory core into infinite recursion.
Fix by aliasing the a7 area to the p4 area.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sh_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sh_pci.c b/hw/sh_pci.c index 76061bb756..36f39300d5 100644 --- a/hw/sh_pci.c +++ b/hw/sh_pci.c @@ -150,7 +150,7 @@ static int sh_pci_init_device(SysBusDevice *dev) PCI_DEVFN(0, 0), 4); memory_region_init_io(&s->memconfig_p4, &sh_pci_reg_ops, s, "sh_pci", 0x224); - memory_region_init_alias(&s->memconfig_a7, "sh_pci.2", &s->memconfig_a7, + memory_region_init_alias(&s->memconfig_a7, "sh_pci.2", &s->memconfig_p4, 0, 0x224); isa_mmio_setup(&s->isa, 0x40000); sysbus_init_mmio_cb2(dev, sh_pci_map, sh_pci_unmap); |