From patchwork Wed Nov 6 13:04:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 178690 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp588297ilf; Wed, 6 Nov 2019 05:12:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxt0CMx35KJuLZichj3VxAXY45NxVnV3XUSTLpSMBwORvdkYvSTXIKfntt4TroM9HL4pKGv X-Received: by 2002:a50:c2c2:: with SMTP id u2mr2586983edf.133.1573045930723; Wed, 06 Nov 2019 05:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573045930; cv=none; d=google.com; s=arc-20160816; b=MxrRoiS2482f068q1QP6YqI33sb/rqe2IH4WJrGCePYezSZdnYEn74bHFNTwlcyG3f iZE5iJZxZklpR4kVpYzy8CpiNrcSSqfbULgAy7/2WPQhPJFTdQymJv4dn+mRebPmfix7 yUTiJheOgzZA+ACvEE6VyuhpvnCV/+MeVBcKtHrPcCMwvQY6o6tHhMqZLGyOY7KXNvPQ 6/RxSqVaLYudd2CqckZfHSackk1vsBQnEKn1yqV3SVifegF5oqVoS3QjCxT0XR21dlTa 4Rl06eS6G12O4r0oEPeDLenjBucv5lYbJj84oBglUe3RD5gD4n3sdItTbvfY09bFjvXo 9QsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=too/yi4ijJc2WkIyHZCEZXIbSuvPRsnTytozXenO15k=; b=kJ8fGmJjFFiS2vFbTMiVKcSOOxzGpRvtec0bLeTY/AKdJafI8f1Yly/FAE8HXRBaNp YMochKjfl4pWEoboANaq5Nimm/OrNM8geiKTsW3jRUcdF3CAfttJE8gc1JoplIKTIGLN /vUqTOq2+ih2ZGYrmSygVkfD2irMxe5YcJDp75SIhqGeHkMckvT1F/IfcvsTI4PH1qRw 8n6kh5CQFW6/gol4FaOvs5QyYiDU1kvMLAfXDfhddGP5nqDr5IVuxEzfBLWQ3KkNqHv1 WEwUNnacJp6DyWuK0+Om/tH9InTohRW2c4P4WX2KLQHcHM8sBmPqXD02nCJ89awNuzl9 yiTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c3si13530925edx.315.2019.11.06.05.12.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Nov 2019 05:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:57902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSL6W-0004Ca-WA for patch@linaro.org; Wed, 06 Nov 2019 08:12:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSKzx-0003Yr-Cx for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSKzs-0002wO-8b for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:21 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:59479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSKzr-0002vV-Vv for qemu-devel@nongnu.org; Wed, 06 Nov 2019 08:05:16 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1McpW6-1hsSHT3VCs-00ZwPn; Wed, 06 Nov 2019 14:05:14 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL v2 09/13] linux-user/sparc64: Fix target_signal_frame Date: Wed, 6 Nov 2019 14:04:52 +0100 Message-Id: <20191106130456.6176-10-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191106130456.6176-1-laurent@vivier.eu> References: <20191106130456.6176-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:jGMMA1r2VMxaPACeECkS6P/IgU0zBlIlnzfV6a8cXosdPtWUyQg x4N/+z1UmJKOW+9Ih48yCw89ez/P55xgQOo/pMISXowX7QrRIesal/Np5jqR1b+VSVM2emn ZFdaPwNiIe5vSqZGcV+7rVaUZCHXVg3KG0AHbj/+TLIA0iCm9jv1zA2R40I3Sxoe+Gmcut8 GlLp/a9VjNpdcXLF5RzTg== X-UI-Out-Filterresults: notjunk:1; V03:K0:E5EdphPDIO8=:6KRUEnGVIV54DmFbbhVujy alMHql5ziQlqAl2XrPtQ1Civ+4NkSlfoqRTEifEsPpMltDpNpDEuZy44cugLP0HZAN1ggTEfE 7VCvThP7jyWFcr17JLK32BbOGVotybSK3PBlduGcazkX7cgcSz0aueV6TSPYR8wJ4XFMiksDG lgPueqB85cyyHsyij7ntdJOI7E9zJFTqEGSRJg1Uy9dw5LARHwYt8IneyzFReisEeAUkOh/Rn aLs8AcAT2349uPRogGmtAGlgaj8drBCOOGiEpUFSj4jGQJ8cXtbwAzEP648wgW++XE5EIVs/F Qc3QY2ogeEBHVXe3UK84NYBbq6PYq6qDJHXDlQKAufUuEeK03r8tEo6A9rMb5F7K5hsr3Nu4l 3akdXVmzjXlH5YPhTL6N6+CNj75OnebngUCx6PQAoRUxQ/c3DAH6z45w3ekaBolOZz6AhEngu FLR5aBlv8YiF81Ji8Cj00W4HzIEHCSns/r/cLF8duDUXt1tD4sEg7eXq0+vX8uQmquEApMyVc PLQxxt9SnVmkMmzaajj46z4q9icgaCtnrDkrrKuTygZ5ihWQuP22MaHoZES9W9YClrHMP+LSj HhKpr1gOKrEFKaE73tnUoALcZeu+B36BxO5oX4vLmWS3sFo6478hXV0/q6o8cZwI0JoOhXO+N 6nK0x8fNTQWa/w/MydExi7y7JKB24feaKLW4zEuPYytfb6BLwPiE/6mFgFamVbg1GLr/lsHbk DC/XbulzsTQn6KPHdiDmnrH+KoyqYD5Q+ozCdDogLKJC3gQBj54nM3g2x3mqf47gnxE5KxCCT JrV29VSJUtOmpP22lt1Zr3u/YmvPbSv89H8xH2qRqL3P8KHBljpsuadVVjBgZkWmoqYP+eQw/ STNlKHryzgQiZ4VvCf/w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.131 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , Riku Voipio , Mark Cave-Ayland , Laurent Vivier , =?utf-8?q?Alex_Benn=C3=A9e?= , Artyom Tarasenko Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Instructions are always 4 bytes; use uint32_t not abi_ulong. Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20191106113318.10226-9-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/sparc/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c index 238d0ba00c89..d796f50f665b 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -87,7 +87,7 @@ struct target_signal_frame { struct sparc_stackf ss; __siginfo_t info; abi_ulong fpu_save; - abi_ulong insns[2] __attribute__ ((aligned (8))); + uint32_t insns[2] QEMU_ALIGNED(8); abi_ulong extramask[TARGET_NSIG_WORDS - 1]; abi_ulong extra_size; /* Should be 0 */ qemu_siginfo_fpu_t fpu_state; @@ -98,7 +98,7 @@ struct target_rt_signal_frame { abi_ulong regs[20]; sigset_t mask; abi_ulong fpu_save; - unsigned int insns[2]; + uint32_t insns[2]; stack_t stack; unsigned int extra_size; /* Should be 0 */ qemu_siginfo_fpu_t fpu_state;