mips_malta: Use cpu_mips_init() to obtain MIPSCPU
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
f37f435a3e
commit
7688b134b8
@ -788,6 +788,7 @@ void mips_malta_init (ram_addr_t ram_size,
|
|||||||
int64_t kernel_entry;
|
int64_t kernel_entry;
|
||||||
PCIBus *pci_bus;
|
PCIBus *pci_bus;
|
||||||
ISABus *isa_bus;
|
ISABus *isa_bus;
|
||||||
|
MIPSCPU *cpu;
|
||||||
CPUMIPSState *env;
|
CPUMIPSState *env;
|
||||||
qemu_irq *isa_irq;
|
qemu_irq *isa_irq;
|
||||||
qemu_irq *cpu_exit_irq;
|
qemu_irq *cpu_exit_irq;
|
||||||
@ -825,11 +826,13 @@ void mips_malta_init (ram_addr_t ram_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < smp_cpus; i++) {
|
for (i = 0; i < smp_cpus; i++) {
|
||||||
env = cpu_init(cpu_model);
|
cpu = cpu_mips_init(cpu_model);
|
||||||
if (!env) {
|
if (cpu == NULL) {
|
||||||
fprintf(stderr, "Unable to find CPU definition\n");
|
fprintf(stderr, "Unable to find CPU definition\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
env = &cpu->env;
|
||||||
|
|
||||||
/* Init internal devices */
|
/* Init internal devices */
|
||||||
cpu_mips_irq_init_cpu(env);
|
cpu_mips_irq_init_cpu(env);
|
||||||
cpu_mips_clock_init(env);
|
cpu_mips_clock_init(env);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user