Skip to content
Snippets Groups Projects
Commit 6bd8da65 authored by Andreas Färber's avatar Andreas Färber
Browse files

mips_jazz: Use cpu_mips_init() to obtain MIPSCPU


Needed for main_cpu_reset().

Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
Acked-by: default avatarHervé Poussineau <hpoussin@reactos.org>
parent 800cf598
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ static void mips_jazz_init(MemoryRegion *address_space,
{
char *filename;
int bios_size, n;
MIPSCPU *cpu;
CPUMIPSState *env;
qemu_irq *rc4030, *i8259;
rc4030_dma *dmas;
......@@ -140,11 +141,12 @@ static void mips_jazz_init(MemoryRegion *address_space,
cpu_model = "24Kf";
#endif
}
env = cpu_init(cpu_model);
if (!env) {
cpu = cpu_mips_init(cpu_model);
if (cpu == NULL) {
fprintf(stderr, "Unable to find CPU definition\n");
exit(1);
}
env = &cpu->env;
qemu_register_reset(main_cpu_reset, env);
/* allocate RAM */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment