mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
pc: pass MachineState to pc_memory_init
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Reviewed-By: Igor Mammedov <imammedo@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c4090f8ef6
commit
9521d42b54
4 changed files with 19 additions and 24 deletions
|
@ -143,9 +143,7 @@ static void pc_q35_init(MachineState *machine)
|
|||
|
||||
/* allocate ram and load rom/bios */
|
||||
if (!xen_enabled()) {
|
||||
pc_memory_init(get_system_memory(),
|
||||
machine->kernel_filename, machine->kernel_cmdline,
|
||||
machine->initrd_filename,
|
||||
pc_memory_init(machine, get_system_memory(),
|
||||
below_4g_mem_size, above_4g_mem_size,
|
||||
rom_memory, &ram_memory, guest_info);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue