Fix GT64120 mapping with REDBOOT, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2366 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3ddd00658e
commit
90e950d17f
|
@ -229,10 +229,13 @@ static void gt64120_pci_mapping(GT64120State *s)
|
||||||
target_phys_addr_t start, length;
|
target_phys_addr_t start, length;
|
||||||
|
|
||||||
/* Update IO mapping */
|
/* Update IO mapping */
|
||||||
|
if ((s->regs[GT_PCI0IOLD] & 0x7f) <= s->regs[GT_PCI0IOHD])
|
||||||
|
{
|
||||||
start = s->regs[GT_PCI0IOLD] << 21;
|
start = s->regs[GT_PCI0IOLD] << 21;
|
||||||
length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;
|
length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;
|
||||||
isa_mmio_init(start, length);
|
isa_mmio_init(start, length);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void gt64120_writel (void *opaque, target_phys_addr_t addr,
|
static void gt64120_writel (void *opaque, target_phys_addr_t addr,
|
||||||
uint32_t val)
|
uint32_t val)
|
||||||
|
|
Loading…
Reference in a new issue