mips: Magnum/Acer Pica 61: replace cpu_model with cpu_type
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Hervé Poussineau <hpoussin@reactos.org> Message-Id: <1507211474-188400-39-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
e5207b761d
commit
3469e65645
@ -122,7 +122,6 @@ static void mips_jazz_init(MachineState *machine,
|
|||||||
enum jazz_model_e jazz_model)
|
enum jazz_model_e jazz_model)
|
||||||
{
|
{
|
||||||
MemoryRegion *address_space = get_system_memory();
|
MemoryRegion *address_space = get_system_memory();
|
||||||
const char *cpu_model = machine->cpu_model;
|
|
||||||
char *filename;
|
char *filename;
|
||||||
int bios_size, n;
|
int bios_size, n;
|
||||||
MIPSCPU *cpu;
|
MIPSCPU *cpu;
|
||||||
@ -148,10 +147,7 @@ static void mips_jazz_init(MachineState *machine,
|
|||||||
MemoryRegion *bios2 = g_new(MemoryRegion, 1);
|
MemoryRegion *bios2 = g_new(MemoryRegion, 1);
|
||||||
|
|
||||||
/* init CPUs */
|
/* init CPUs */
|
||||||
if (cpu_model == NULL) {
|
cpu = MIPS_CPU(cpu_create(machine->cpu_type));
|
||||||
cpu_model = "R4000";
|
|
||||||
}
|
|
||||||
cpu = MIPS_CPU(cpu_generic_init(TYPE_MIPS_CPU, cpu_model));
|
|
||||||
env = &cpu->env;
|
env = &cpu->env;
|
||||||
qemu_register_reset(main_cpu_reset, cpu);
|
qemu_register_reset(main_cpu_reset, cpu);
|
||||||
|
|
||||||
@ -349,6 +345,7 @@ static void mips_magnum_class_init(ObjectClass *oc, void *data)
|
|||||||
mc->desc = "MIPS Magnum";
|
mc->desc = "MIPS Magnum";
|
||||||
mc->init = mips_magnum_init;
|
mc->init = mips_magnum_init;
|
||||||
mc->block_default_type = IF_SCSI;
|
mc->block_default_type = IF_SCSI;
|
||||||
|
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("R4000");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo mips_magnum_type = {
|
static const TypeInfo mips_magnum_type = {
|
||||||
@ -364,6 +361,7 @@ static void mips_pica61_class_init(ObjectClass *oc, void *data)
|
|||||||
mc->desc = "Acer Pica 61";
|
mc->desc = "Acer Pica 61";
|
||||||
mc->init = mips_pica61_init;
|
mc->init = mips_pica61_init;
|
||||||
mc->block_default_type = IF_SCSI;
|
mc->block_default_type = IF_SCSI;
|
||||||
|
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("R4000");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo mips_pica61_type = {
|
static const TypeInfo mips_pica61_type = {
|
||||||
|
Loading…
Reference in New Issue
Block a user