mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
pc: Use PCMachineState for pc_memory_init() argument
pc_memory_init() already expects a PCMachineState object, there's no point in upcasting it to MachineState before calling the function. 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:
committed by
Michael S. Tsirkin
parent
23d3040704
commit
62b160c02c
@@ -185,7 +185,7 @@ FWCfgState *xen_load_linux(const char *kernel_filename,
|
||||
const char *initrd_filename,
|
||||
ram_addr_t below_4g_mem_size,
|
||||
PcGuestInfo *guest_info);
|
||||
FWCfgState *pc_memory_init(MachineState *machine,
|
||||
FWCfgState *pc_memory_init(PCMachineState *pcms,
|
||||
MemoryRegion *system_memory,
|
||||
ram_addr_t below_4g_mem_size,
|
||||
ram_addr_t above_4g_mem_size,
|
||||
|
||||
Reference in New Issue
Block a user