mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
isa_mmio: Always use little endian
This patch converts the ISA MMIO bridge code to always use little endian mmio. All bswap code that existed was only there to convert from native cpu endianness to little endian ISA devices. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
b093c1a327
commit
968d683c04
14 changed files with 36 additions and 119 deletions
|
@ -297,11 +297,7 @@ static void gt64120_pci_mapping(GT64120State *s)
|
|||
s->PCI0IO_start = s->regs[GT_PCI0IOLD] << 21;
|
||||
s->PCI0IO_length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;
|
||||
isa_mem_base = s->PCI0IO_start;
|
||||
#ifdef TARGET_WORDS_BIGENDIAN
|
||||
isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length, 1);
|
||||
#else
|
||||
isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length, 0);
|
||||
#endif
|
||||
isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue