From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34757 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLH8q-0006wC-Gt for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:20:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLH8m-000481-5v for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:20:16 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:16641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLH8l-00045l-Un for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:20:12 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.69) (envelope-from ) id 1PLH8i-0004rx-Cx for qemu-devel@nongnu.org; Wed, 24 Nov 2010 15:20:08 +0000 From: Peter Maydell Date: Wed, 24 Nov 2010 15:20:03 +0000 Message-Id: <1290612008-18693-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1290612008-18693-1-git-send-email-peter.maydell@linaro.org> References: <1290612008-18693-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/6] ARM: linux-user: Correct size of padding in target_ucontext_v2 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The padding in the target_ucontext_v2 is defined by the size of the target's sigset_t type, not the host's. (This bug only causes problems when we start using the uc_regspace[] array to expose VFP registers to userspace signal handlers.) Signed-off-by: Peter Maydell --- linux-user/signal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 77683f7..da0ba50 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -1108,7 +1108,7 @@ struct target_ucontext_v2 { target_stack_t tuc_stack; struct target_sigcontext tuc_mcontext; target_sigset_t tuc_sigmask; /* mask last for extensibility */ - char __unused[128 - sizeof(sigset_t)]; + char __unused[128 - sizeof(target_sigset_t)]; abi_ulong tuc_regspace[128] __attribute__((__aligned__(8))); }; -- 1.7.1