mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
make ram_size local to vl.c
Use the machine properties for the leftovers too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
48c0b1e45f
commit
b326b6ea79
6 changed files with 12 additions and 11 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "hw/virtio/virtio.h"
|
||||
#include "hw/mem/pc-dimm.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/balloon.h"
|
||||
#include "hw/virtio/virtio-balloon.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
@ -748,7 +749,7 @@ static int build_dimm_list(Object *obj, void *opaque)
|
|||
static ram_addr_t get_current_ram_size(void)
|
||||
{
|
||||
GSList *list = NULL, *item;
|
||||
ram_addr_t size = ram_size;
|
||||
ram_addr_t size = current_machine->ram_size;
|
||||
|
||||
build_dimm_list(qdev_get_machine(), &list);
|
||||
for (item = list; item; item = g_slist_next(item)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue