mirror of https://github.com/xemu-project/xemu.git
mips_r4k: 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-8-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f51100cc51
commit
3959496874
|
@ -164,6 +164,7 @@ void mips_r4k_init(QEMUMachineInitArgs *args)
|
|||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *bios;
|
||||
MemoryRegion *iomem = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *isa = g_new(MemoryRegion, 1);
|
||||
int bios_size;
|
||||
MIPSCPU *cpu;
|
||||
CPUMIPSState *env;
|
||||
|
@ -273,7 +274,10 @@ void mips_r4k_init(QEMUMachineInitArgs *args)
|
|||
rtc_init(isa_bus, 2000, NULL);
|
||||
|
||||
/* Register 64 KB of ISA IO space at 0x14000000 */
|
||||
isa_mmio_init(0x14000000, 0x00010000);
|
||||
memory_region_init_alias(isa, NULL, "isa_mmio",
|
||||
get_system_io(), 0, 0x00010000);
|
||||
memory_region_add_subregion(get_system_memory(), 0x14000000, isa);
|
||||
|
||||
isa_mem_base = 0x10000000;
|
||||
|
||||
pit = pit_init(isa_bus, 0x40, 0, NULL);
|
||||
|
|
Loading…
Reference in New Issue