mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
pc: Simplify pc_memory_init() signature
We can get the PcGuestInfo struct directly from PCMachineState, and the return value is not needed at all. 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> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
This commit is contained in:
parent
9ebeed0c1e
commit
5934e2169a
4 changed files with 11 additions and 13 deletions
|
@ -156,7 +156,7 @@ static void pc_q35_init(MachineState *machine)
|
|||
/* allocate ram and load rom/bios */
|
||||
if (!xen_enabled()) {
|
||||
pc_memory_init(pcms, get_system_memory(),
|
||||
rom_memory, &ram_memory, guest_info);
|
||||
rom_memory, &ram_memory);
|
||||
}
|
||||
|
||||
/* irq lines */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue