|
|
@ -272,17 +272,19 @@ static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device, |
|
|
i2c_bus *smbus; |
|
|
i2c_bus *smbus; |
|
|
int i; |
|
|
int i; |
|
|
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; |
|
|
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; |
|
|
|
|
|
MIPSCPU *cpu; |
|
|
CPUMIPSState *env; |
|
|
CPUMIPSState *env; |
|
|
|
|
|
|
|
|
/* init CPUs */ |
|
|
/* init CPUs */ |
|
|
if (cpu_model == NULL) { |
|
|
if (cpu_model == NULL) { |
|
|
cpu_model = "Loongson-2E"; |
|
|
cpu_model = "Loongson-2E"; |
|
|
} |
|
|
} |
|
|
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; |
|
|
|
|
|
|
|
|
qemu_register_reset(main_cpu_reset, env); |
|
|
qemu_register_reset(main_cpu_reset, env); |
|
|
|
|
|
|
|
|
|