mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
pc: Use PCMachineState for pc_cmos_init() argument
pc_cmos_init() already expects a PCMachineState object, there's no point in upcasting it to MachineState before calling the function. While doing it, reorder the arguments so PCMachineState is the first function argument. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
4458fb3a79
commit
23d3040704
4 changed files with 14 additions and 11 deletions
|
@ -271,8 +271,9 @@ static void pc_init1(MachineState *machine)
|
|||
}
|
||||
}
|
||||
|
||||
pc_cmos_init(below_4g_mem_size, above_4g_mem_size, machine->boot_order,
|
||||
machine, idebus[0], idebus[1], rtc_state);
|
||||
pc_cmos_init(pcms,
|
||||
below_4g_mem_size, above_4g_mem_size, machine->boot_order,
|
||||
idebus[0], idebus[1], rtc_state);
|
||||
|
||||
if (pci_enabled && usb_enabled()) {
|
||||
pci_create_simple(pci_bus, piix3_devfn + 2, "piix3-usb-uhci");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue