Revision 3fc6c082 hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
527 | 527 |
int ret, linux_boot, i, nb_nics1; |
528 | 528 |
unsigned long bios_offset; |
529 | 529 |
uint32_t kernel_base, kernel_size, initrd_base, initrd_size; |
530 |
ppc_def_t *def; |
|
530 | 531 |
PCIBus *pci_bus; |
531 | 532 |
|
532 | 533 |
sysctrl = qemu_mallocz(sizeof(sysctrl_t)); |
... | ... | |
582 | 583 |
} |
583 | 584 |
|
584 | 585 |
/* Register CPU as a 604 */ |
585 |
cpu_ppc_register(cpu_single_env, 0x00040000); |
|
586 |
/* XXX: CPU model (or PVR) should be provided on command line */ |
|
587 |
// ppc_find_by_name("604r", &def); |
|
588 |
// ppc_find_by_name("604e", &def); |
|
589 |
ppc_find_by_name("604", &def); |
|
590 |
if (def == NULL) { |
|
591 |
cpu_abort(cpu_single_env, "Unable to find PowerPC CPU definition\n"); |
|
592 |
} |
|
593 |
cpu_ppc_register(cpu_single_env, def); |
|
586 | 594 |
/* Set time-base frequency to 100 Mhz */ |
587 | 595 |
cpu_ppc_tb_init(cpu_single_env, 100UL * 1000UL * 1000UL); |
588 | 596 |
|
Also available in: Unified diff