mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
|
@ -106,8 +106,7 @@ static void niagara_init(MachineState *machine)
|
|||
MemoryRegion *sysmem = get_system_memory();
|
||||
|
||||
/* init CPUs */
|
||||
sparc64_cpu_devinit(machine->cpu_model, "Sun UltraSparc T1",
|
||||
NIAGARA_PROM_BASE);
|
||||
sparc64_cpu_devinit(machine->cpu_type, NIAGARA_PROM_BASE);
|
||||
/* set up devices */
|
||||
memory_region_allocate_system_memory(&s->hv_ram, NULL, "sun4v-hv.ram",
|
||||
NIAGARA_HV_RAM_SIZE);
|
||||
|
@ -174,6 +173,7 @@ static void niagara_class_init(ObjectClass *oc, void *data)
|
|||
mc->init = niagara_init;
|
||||
mc->max_cpus = 1; /* XXX for now */
|
||||
mc->default_boot_order = "c";
|
||||
mc->default_cpu_type = SPARC_CPU_TYPE_NAME("Sun-UltraSparc-T1");
|
||||
}
|
||||
|
||||
static const TypeInfo niagara_type = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue