mips: remove isa_mem_base usage
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
This commit is contained in:
parent
5c63bcf750
commit
0c10962a03
@ -165,7 +165,8 @@ void mips_r4k_init(MachineState *machine)
|
|||||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||||
MemoryRegion *bios;
|
MemoryRegion *bios;
|
||||||
MemoryRegion *iomem = g_new(MemoryRegion, 1);
|
MemoryRegion *iomem = g_new(MemoryRegion, 1);
|
||||||
MemoryRegion *isa = g_new(MemoryRegion, 1);
|
MemoryRegion *isa_io = g_new(MemoryRegion, 1);
|
||||||
|
MemoryRegion *isa_mem = g_new(MemoryRegion, 1);
|
||||||
int bios_size;
|
int bios_size;
|
||||||
MIPSCPU *cpu;
|
MIPSCPU *cpu;
|
||||||
CPUMIPSState *env;
|
CPUMIPSState *env;
|
||||||
@ -267,20 +268,20 @@ void mips_r4k_init(MachineState *machine)
|
|||||||
cpu_mips_irq_init_cpu(env);
|
cpu_mips_irq_init_cpu(env);
|
||||||
cpu_mips_clock_init(env);
|
cpu_mips_clock_init(env);
|
||||||
|
|
||||||
|
/* ISA bus: IO space at 0x14000000, mem space at 0x10000000 */
|
||||||
|
memory_region_init_alias(isa_io, NULL, "isa-io",
|
||||||
|
get_system_io(), 0, 0x00010000);
|
||||||
|
memory_region_init(isa_mem, NULL, "isa-mem", 0x01000000);
|
||||||
|
memory_region_add_subregion(get_system_memory(), 0x14000000, isa_io);
|
||||||
|
memory_region_add_subregion(get_system_memory(), 0x10000000, isa_mem);
|
||||||
|
isa_bus = isa_bus_new(NULL, isa_mem, get_system_io());
|
||||||
|
|
||||||
/* The PIC is attached to the MIPS CPU INT0 pin */
|
/* The PIC is attached to the MIPS CPU INT0 pin */
|
||||||
isa_bus = isa_bus_new(NULL, get_system_memory(), get_system_io());
|
|
||||||
i8259 = i8259_init(isa_bus, env->irq[2]);
|
i8259 = i8259_init(isa_bus, env->irq[2]);
|
||||||
isa_bus_irqs(isa_bus, i8259);
|
isa_bus_irqs(isa_bus, i8259);
|
||||||
|
|
||||||
rtc_init(isa_bus, 2000, NULL);
|
rtc_init(isa_bus, 2000, NULL);
|
||||||
|
|
||||||
/* Register 64 KB of ISA IO space at 0x14000000 */
|
|
||||||
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);
|
pit = pit_init(isa_bus, 0x40, 0, NULL);
|
||||||
|
|
||||||
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user