pc: Use PCMachineState for pc_memory_init() argument
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 7 Aug 2015 19:55:50 +0000 (16:55 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 13 Aug 2015 11:08:27 +0000 (14:08 +0300)
commit62b160c02ca46f0b5a06cc4416c47708c7ffd76b
tree0186a5571d07f8885aa1e4baf290e24547b43b27
parent23d3040704e8e2a10f3e21e2c6594b3a8c7b20db
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>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h