Revision aaed909a hw/mips_pica61.c
b/hw/mips_pica61.c | ||
---|---|---|
51 | 51 |
{ |
52 | 52 |
CPUState *env = opaque; |
53 | 53 |
cpu_reset(env); |
54 |
cpu_mips_register(env, NULL); |
|
55 | 54 |
} |
56 | 55 |
|
57 | 56 |
static |
... | ... | |
78 | 77 |
cpu_model = "24Kf"; |
79 | 78 |
#endif |
80 | 79 |
} |
81 |
if (mips_find_by_name(cpu_model, &def) != 0) |
|
82 |
def = NULL; |
|
83 |
env = cpu_init(); |
|
84 |
cpu_mips_register(env, def); |
|
80 |
env = cpu_init(cpu_model); |
|
81 |
if (!env) { |
|
82 |
fprintf(stderr, "Unable to find CPU definition\n"); |
|
83 |
exit(1); |
|
84 |
} |
|
85 | 85 |
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); |
86 | 86 |
qemu_register_reset(main_cpu_reset, env); |
87 | 87 |
|
Also available in: Unified diff