mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
Sparc32/64 CPU selection
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2534 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
34ee2edebb
commit
62724a3773
5 changed files with 96 additions and 9 deletions
10
hw/sun4u.c
10
hw/sun4u.c
|
@ -266,10 +266,20 @@ static void sun4u_init(int ram_size, int vga_ram_size, int boot_device,
|
|||
unsigned int i;
|
||||
long prom_offset, initrd_size, kernel_size;
|
||||
PCIBus *pci_bus;
|
||||
const sparc_def_t *def;
|
||||
|
||||
linux_boot = (kernel_filename != NULL);
|
||||
|
||||
/* init CPUs */
|
||||
if (cpu_model == NULL)
|
||||
cpu_model = "TI UltraSparc II";
|
||||
sparc_find_by_name(cpu_model, &def);
|
||||
if (def == NULL) {
|
||||
fprintf(stderr, "Unable to find Sparc CPU definition\n");
|
||||
exit(1);
|
||||
}
|
||||
env = cpu_init();
|
||||
cpu_sparc_register(env, def);
|
||||
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env);
|
||||
qemu_register_reset(main_cpu_reset, env);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue