mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
moxie: use generic cpu_model parsing
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <1507211474-188400-17-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
0255db239e
commit
b2c223571e
@ -103,7 +103,6 @@ static void moxiesim_init(MachineState *machine)
|
||||
{
|
||||
MoxieCPU *cpu = NULL;
|
||||
ram_addr_t ram_size = machine->ram_size;
|
||||
const char *cpu_model = machine->cpu_model;
|
||||
const char *kernel_filename = machine->kernel_filename;
|
||||
const char *kernel_cmdline = machine->kernel_cmdline;
|
||||
const char *initrd_filename = machine->initrd_filename;
|
||||
@ -115,10 +114,7 @@ static void moxiesim_init(MachineState *machine)
|
||||
LoaderParams loader_params;
|
||||
|
||||
/* Init CPUs. */
|
||||
if (cpu_model == NULL) {
|
||||
cpu_model = "MoxieLite";
|
||||
}
|
||||
cpu = MOXIE_CPU(cpu_generic_init(TYPE_MOXIE_CPU, cpu_model));
|
||||
cpu = MOXIE_CPU(cpu_create(machine->cpu_type));
|
||||
env = &cpu->env;
|
||||
|
||||
qemu_register_reset(main_cpu_reset, cpu);
|
||||
@ -150,6 +146,7 @@ static void moxiesim_machine_init(MachineClass *mc)
|
||||
mc->desc = "Moxie simulator platform";
|
||||
mc->init = moxiesim_init;
|
||||
mc->is_default = 1;
|
||||
mc->default_cpu_type = MOXIE_CPU_TYPE_NAME("MoxieLite");
|
||||
}
|
||||
|
||||
DEFINE_MACHINE("moxiesim", moxiesim_machine_init)
|
||||
|
Loading…
Reference in New Issue
Block a user