Revision aaed909a hw/mips_malta.c
b/hw/mips_malta.c | ||
---|---|---|
735 | 735 |
{ |
736 | 736 |
CPUState *env = opaque; |
737 | 737 |
cpu_reset(env); |
738 |
cpu_mips_register(env, NULL); |
|
739 | 738 |
|
740 | 739 |
/* The bootload does not need to be rewritten as it is located in a |
741 | 740 |
read only location. The kernel location and the arguments table |
... | ... | |
761 | 760 |
/* fdctrl_t *floppy_controller; */ |
762 | 761 |
MaltaFPGAState *malta_fpga; |
763 | 762 |
int ret; |
764 |
mips_def_t *def; |
|
765 | 763 |
qemu_irq *i8259; |
766 | 764 |
int piix4_devfn; |
767 | 765 |
uint8_t *eeprom_buf; |
... | ... | |
776 | 774 |
cpu_model = "24Kf"; |
777 | 775 |
#endif |
778 | 776 |
} |
779 |
if (mips_find_by_name(cpu_model, &def) != 0) |
|
780 |
def = NULL; |
|
781 |
env = cpu_init(); |
|
782 |
cpu_mips_register(env, def); |
|
777 |
env = cpu_init(cpu_model); |
|
778 |
if (!env) { |
|
779 |
fprintf(stderr, "Unable to find CPU definition\n"); |
|
780 |
exit(1); |
|
781 |
} |
|
783 | 782 |
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); |
784 | 783 |
qemu_register_reset(main_cpu_reset, env); |
785 | 784 |
|
Also available in: Unified diff