diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-28 06:17:07 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-10 12:15:09 -0500 |
commit | 382a04afa075927d843f11e9fb8c450a084bbfa8 (patch) | |
tree | 566397c376216fced1e90480381e5c68becc1684 /hw/s390x/s390-virtio-ccw.c | |
parent | 82e69054656f86d00b263437ad04395a5f834248 (diff) | |
download | qemu-382a04afa075927d843f11e9fb8c450a084bbfa8.zip qemu-382a04afa075927d843f11e9fb8c450a084bbfa8.tar.gz qemu-382a04afa075927d843f11e9fb8c450a084bbfa8.tar.bz2 |
s390x: do not use ram_size global
Use the machine properties instead.
Cc: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/s390x/s390-virtio-ccw.c')
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index a6324d9..a2d9a79 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -17,6 +17,7 @@ #include "hw/boards.h" #include "exec/address-spaces.h" #include "exec/ram_addr.h" +#include "hw/boards.h" #include "hw/s390x/s390-virtio-hcall.h" #include "hw/s390x/sclp.h" #include "hw/s390x/s390_flic.h" @@ -142,8 +143,9 @@ static int virtio_ccw_hcall_notify(const uint64_t *args) static int virtio_ccw_hcall_early_printk(const uint64_t *args) { uint64_t mem = args[0]; + MachineState *ms = MACHINE(qdev_get_machine()); - if (mem < ram_size) { + if (mem < ms->ram_size) { /* Early printk */ return 0; } |