diff options
author | Paolo Bonzini | 2020-10-28 11:15:40 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:08 +0100 |
commit | 5601d24164551b3473588837c4f92ef1bbde0415 (patch) | |
tree | e6f173985df95864e68d0b840808e02b7f895b80 /target | |
parent | i386: do not use ram_size global (diff) | |
download | qemu-5601d24164551b3473588837c4f92ef1bbde0415.tar.gz qemu-5601d24164551b3473588837c4f92ef1bbde0415.tar.xz qemu-5601d24164551b3473588837c4f92ef1bbde0415.zip |
m68k: do not use ram_size global
Use the machine properties instead.
Cc: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/m68k/m68k-semi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/m68k/m68k-semi.c b/target/m68k/m68k-semi.c index 8e5fbfc8fa..27600e0cc0 100644 --- a/target/m68k/m68k-semi.c +++ b/target/m68k/m68k-semi.c @@ -26,6 +26,7 @@ #else #include "exec/gdbstub.h" #include "exec/softmmu-semi.h" +#include "hw/boards.h" #endif #include "qemu/log.h" @@ -455,8 +456,8 @@ void do_m68k_semihosting(CPUM68KState *env, int nr) * FIXME: This is wrong for boards where RAM does not start at * address zero. */ - env->dregs[1] = ram_size; - env->aregs[7] = ram_size; + env->dregs[1] = current_machine->ram_size; + env->aregs[7] = current_machine->ram_size; #endif return; default: |