From patchwork Fri Dec 3 13:36:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku@afflict.kos.to, Voipio@afflict.kos.to X-Patchwork-Id: 74149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4CA31B7043 for ; Sat, 4 Dec 2010 01:00:25 +1100 (EST) Received: from localhost ([127.0.0.1]:38875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POVqf-0003ty-Qh for incoming@patchwork.ozlabs.org; Fri, 03 Dec 2010 08:38:53 -0500 Received: from [140.186.70.92] (port=60333 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POVoe-0003oc-DK for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:36:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POVoc-0008OD-EM for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:36:48 -0500 Received: from afflict.kos.to ([92.243.29.197]:44054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POVoc-0008Nl-8p for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:36:46 -0500 Received: by afflict.kos.to (Postfix, from userid 1000) id CD4852667B; Fri, 3 Dec 2010 13:36:43 +0000 (UTC) From: Riku@afflict.kos.to, Voipio@afflict.kos.to To: qemu-devel@nongnu.org Date: Fri, 3 Dec 2010 15:36:35 +0200 Message-Id: <5f0b7c888b5e626d61e0969a6c0dbf4fcf0f522c.1291382447.git.riku.voipio@nokia.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Peter Maydell Subject: [Qemu-devel] [PATCH 08/16] ARM: linux-user: Correct size of padding in target_ucontext_v2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Maydell 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 Signed-off-by: Riku Voipio --- 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 7c62fac..e195eef 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))); };