diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-28 06:18:20 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-10 12:15:07 -0500 |
commit | 6e504a989dece8136d58f9f7c42f6e22b1ce49ae (patch) | |
tree | ab27d39dffde32254fd3e70b81aa1f996090ca2a /target/arm | |
parent | d619f157a50f0c98baee2dce0b6a5ca66fa89ac9 (diff) |
arm: do not use ram_size global
Use the machine properties instead.
Cc: qemu-ppc@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/arm')
-rw-r--r-- | target/arm/arm-semi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/arm/arm-semi.c b/target/arm/arm-semi.c index c892e0e674..f7b7bff522 100644 --- a/target/arm/arm-semi.c +++ b/target/arm/arm-semi.c @@ -37,6 +37,7 @@ #include "exec/gdbstub.h" #include "qemu/cutils.h" #include "hw/arm/boot.h" +#include "hw/boards.h" #endif #define TARGET_SYS_OPEN 0x01 @@ -1048,7 +1049,7 @@ target_ulong do_arm_semihosting(CPUARMState *env) retvals[2] = ts->stack_base; retvals[3] = 0; /* Stack limit. */ #else - limit = ram_size; + limit = current_machine->ram_size; /* TODO: Make this use the limit of the loaded application. */ retvals[0] = rambase + limit / 2; retvals[1] = rambase + limit; |