mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
sparc: sun4u/sun4v/niagara: 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-33-git-send-email-imammedo@redhat.com> Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
1d4bfc5496
commit
5853046101
4 changed files with 8 additions and 15 deletions
|
@ -339,8 +339,7 @@ void cpu_tick_set_limit(CPUTimer *timer, uint64_t limit)
|
|||
}
|
||||
}
|
||||
|
||||
SPARCCPU *sparc64_cpu_devinit(const char *cpu_model,
|
||||
const char *default_cpu_model, uint64_t prom_addr)
|
||||
SPARCCPU *sparc64_cpu_devinit(const char *cpu_type, uint64_t prom_addr)
|
||||
{
|
||||
SPARCCPU *cpu;
|
||||
CPUSPARCState *env;
|
||||
|
@ -350,10 +349,7 @@ SPARCCPU *sparc64_cpu_devinit(const char *cpu_model,
|
|||
uint32_t stick_frequency = 100 * 1000000;
|
||||
uint32_t hstick_frequency = 100 * 1000000;
|
||||
|
||||
if (cpu_model == NULL) {
|
||||
cpu_model = default_cpu_model;
|
||||
}
|
||||
cpu = SPARC_CPU(cpu_generic_init(TYPE_SPARC_CPU, cpu_model));
|
||||
cpu = SPARC_CPU(cpu_create(cpu_type));
|
||||
env = &cpu->env;
|
||||
|
||||
env->tick = cpu_timer_create("tick", cpu, tick_irq,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue