Revision 6ac0e82d hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
521 | 521 |
#define NVRAM_SIZE 0x2000 |
522 | 522 |
|
523 | 523 |
/* PowerPC PREP hardware initialisation */ |
524 |
static void ppc_prep_init (int ram_size, int vga_ram_size, int boot_device,
|
|
524 |
static void ppc_prep_init (int ram_size, int vga_ram_size, const char *boot_device,
|
|
525 | 525 |
DisplayState *ds, const char **fd_filename, |
526 | 526 |
int snapshot, const char *kernel_filename, |
527 | 527 |
const char *kernel_cmdline, |
... | ... | |
539 | 539 |
ppc_def_t *def; |
540 | 540 |
PCIBus *pci_bus; |
541 | 541 |
qemu_irq *i8259; |
542 |
int ppc_boot_device = boot_device[0]; |
|
542 | 543 |
|
543 | 544 |
sysctrl = qemu_mallocz(sizeof(sysctrl_t)); |
544 | 545 |
if (sysctrl == NULL) |
... | ... | |
607 | 608 |
initrd_base = 0; |
608 | 609 |
initrd_size = 0; |
609 | 610 |
} |
610 |
boot_device = 'm'; |
|
611 |
ppc_boot_device = 'm';
|
|
611 | 612 |
} else { |
612 | 613 |
kernel_base = 0; |
613 | 614 |
kernel_size = 0; |
... | ... | |
695 | 696 |
nvram.opaque = m48t59; |
696 | 697 |
nvram.read_fn = &m48t59_read; |
697 | 698 |
nvram.write_fn = &m48t59_write; |
698 |
PPC_NVRAM_set_params(&nvram, NVRAM_SIZE, "PREP", ram_size, boot_device, |
|
699 |
PPC_NVRAM_set_params(&nvram, NVRAM_SIZE, "PREP", ram_size, ppc_boot_device,
|
|
699 | 700 |
kernel_base, kernel_size, |
700 | 701 |
kernel_cmdline, |
701 | 702 |
initrd_base, initrd_size, |
Also available in: Unified diff