mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -35,6 +35,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "sysemu/dma.h"
|
||||
#include "sysemu/reset.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "qapi/error.h"
|
||||
|
@ -154,7 +155,7 @@ static void generic_loader_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
if (size < 0 || s->force_raw) {
|
||||
/* Default to the maximum size being the machine's ram size */
|
||||
size = load_image_targphys_as(s->file, s->addr, ram_size, as);
|
||||
size = load_image_targphys_as(s->file, s->addr, current_machine->ram_size, as);
|
||||
} else {
|
||||
s->addr = entry;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue