target-arm/arm-semi.c: In SYS_HEAPINFO use correct type for 'limit'
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Jul 2016 12:47:00 +0000 (13:47 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Jul 2016 12:47:00 +0000 (13:47 +0100)
In commit f5666418c4 most of the SYS_HEAPINFO implementation was
fixed to use target_ulong rather than uint32_t, but the 'limit'
variable was not changed.

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1467650942-28706-1-git-send-email-peter.maydell@linaro.org

target-arm/arm-semi.c

index d50726f65d92a8ab2714c94899303fa93574cdc3..7cac8734c70d19d5a6c700344bebf55ec59181d0 100644 (file)
@@ -565,7 +565,7 @@ target_ulong do_arm_semihosting(CPUARMState *env)
     case TARGET_SYS_HEAPINFO:
         {
             target_ulong retvals[4];
-            uint32_t limit;
+            target_ulong limit;
             int i;
 
             GET_ARG(0);