Revision aaed909a hw/mips_r4k.c
b/hw/mips_r4k.c | ||
---|---|---|
135 | 135 |
{ |
136 | 136 |
CPUState *env = opaque; |
137 | 137 |
cpu_reset(env); |
138 |
cpu_mips_register(env, NULL); |
|
139 | 138 |
|
140 | 139 |
if (loaderparams.kernel_filename) |
141 | 140 |
load_kernel (env); |
... | ... | |
164 | 163 |
cpu_model = "24Kf"; |
165 | 164 |
#endif |
166 | 165 |
} |
167 |
if (mips_find_by_name(cpu_model, &def) != 0) |
|
168 |
def = NULL; |
|
169 |
env = cpu_init(); |
|
170 |
cpu_mips_register(env, def); |
|
166 |
env = cpu_init(cpu_model); |
|
167 |
if (!env) { |
|
168 |
fprintf(stderr, "Unable to find CPU definition\n"); |
|
169 |
exit(1); |
|
170 |
} |
|
171 | 171 |
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); |
172 | 172 |
qemu_register_reset(main_cpu_reset, env); |
173 | 173 |
|
Also available in: Unified diff