diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-28 06:22:23 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-10 12:15:08 -0500 |
commit | 86378b29fa22a9854a084241bf51515e149133e4 (patch) | |
tree | 06faf85e7ccbaff47062b038dc26bf7ee6a2cab1 /hw/i386/vmport.c | |
parent | bfdf22bc769a56d8e1fe7c72a28ef05c0a6d8596 (diff) | |
download | qemu-86378b29fa22a9854a084241bf51515e149133e4.zip qemu-86378b29fa22a9854a084241bf51515e149133e4.tar.gz qemu-86378b29fa22a9854a084241bf51515e149133e4.tar.bz2 |
i386: do not use ram_size global
Use the loader parameters instead.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/vmport.c')
-rw-r--r-- | hw/i386/vmport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 20d6055..490a57f 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -32,6 +32,7 @@ #include "hw/isa/isa.h" #include "hw/i386/vmport.h" #include "hw/qdev-properties.h" +#include "hw/boards.h" #include "sysemu/sysemu.h" #include "sysemu/hw_accel.h" #include "sysemu/qtest.h" @@ -188,7 +189,7 @@ static uint32_t vmport_cmd_ram_size(void *opaque, uint32_t addr) return -1; } cpu->env.regs[R_EBX] = 0x1177; - return ram_size; + return current_machine->ram_size; } static uint32_t vmport_cmd_get_hz(void *opaque, uint32_t addr) |