Received: from eggs.gnu.org ([2001:4830:134:3::10]:43452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK2u4-00035W-GS for qemu-devel@nongnu.org; Mon, 04 Jul 2016 08:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK2u2-0004S8-6U for qemu-devel@nongnu.org; Mon, 04 Jul 2016 08:23:07 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:58075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK2u1-0004O4-KH for qemu-devel@nongnu.org; Mon, 04 Jul 2016 08:23:05 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1bK2tr-00016v-Mo for qemu-devel@nongnu.org; Mon, 04 Jul 2016 13:22:55 +0100 From: Peter Maydell Date: Mon, 4 Jul 2016 13:22:32 +0100 Message-Id: <1467634974-32638-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1467634974-32638-1-git-send-email-peter.maydell@linaro.org> References: <1467634974-32638-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 01/23] linux-user: Make semihosting heap/stack fields abi_ulongs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The fields in the TaskState heap_base, heap_limit and stack_base are all guest addresses (representing the locations of the heap and stack for the guest binary), so they should be abi_ulong rather than uint32_t. (This only in practice affects ARM AArch64 since all the other semihosting implementations are 32-bit.) Signed-off-by: Peter Maydell Reviewed-by: Laurent Desnogues Message-id: 1466783381-29506-2-git-send-email-peter.maydell@linaro.org --- linux-user/qemu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index e8a5aed..cdf23a7 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -116,10 +116,10 @@ typedef struct TaskState { #endif #if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) /* Extra fields for semihosted binaries. */ - uint32_t heap_base; - uint32_t heap_limit; + abi_ulong heap_base; + abi_ulong heap_limit; #endif - uint32_t stack_base; + abi_ulong stack_base; int used; /* non zero if used */ struct image_info *info; struct linux_binprm *bprm; -- 1.9.1