summaryrefslogtreecommitdiffstats
path: root/hw/i386/pc_q35.c
diff options
context:
space:
mode:
authorEduardo Habkost2015-08-07 21:55:50 +0200
committerMichael S. Tsirkin2015-08-13 13:08:27 +0200
commit62b160c02ca46f0b5a06cc4416c47708c7ffd76b (patch)
tree0186a5571d07f8885aa1e4baf290e24547b43b27 /hw/i386/pc_q35.c
parentpc: Use PCMachineState for pc_cmos_init() argument (diff)
downloadqemu-62b160c02ca46f0b5a06cc4416c47708c7ffd76b.tar.gz
qemu-62b160c02ca46f0b5a06cc4416c47708c7ffd76b.tar.xz
qemu-62b160c02ca46f0b5a06cc4416c47708c7ffd76b.zip
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>
Diffstat (limited to 'hw/i386/pc_q35.c')
-rw-r--r--hw/i386/pc_q35.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 441e9d9b72..6763f0de2f 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -170,7 +170,7 @@ static void pc_q35_init(MachineState *machine)
/* allocate ram and load rom/bios */
if (!xen_enabled()) {
- pc_memory_init(machine, get_system_memory(),
+ pc_memory_init(pcms, get_system_memory(),
below_4g_mem_size, above_4g_mem_size,
rom_memory, &ram_memory, guest_info);
}