From patchwork Wed Nov 6 11:33:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 178674 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp483119ilf; Wed, 6 Nov 2019 03:40:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwDXzyFY9RDgS0CZKboCFnXSXFUPtneuUlrB09Yb3DjcDqEPxGfxqUJoO2FFYKKMCkbXXPq X-Received: by 2002:ac8:7006:: with SMTP id x6mr1894245qtm.152.1573040411787; Wed, 06 Nov 2019 03:40:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573040411; cv=none; d=google.com; s=arc-20160816; b=twhjvdH93z0zxWEW96aKMcJvHFMmRGUmeQI8HiUIPMCYzAjy8TLB3NKuOgWPqAnFdX n7jCl8DmTVZII655mfUbmfrn06T8vMXcBfWMARX6pvod23WH4bj33LgwTB2LiznmRyic 9DtcxsZAjZKCXZxht7OWN4qmfx9H6jMyHQ4EYkbIFJOisDoiY9JtzLHw3Uq901YfUgDi wSum//NPadV/YMVygCa+anB3x3qHgrmg3gBtpdW28XLJRIJ/+oQ9/y62MmHb+SG0GpgQ KFetRSvQ/9AupSmeC3F7pQYV0UkNhEydpIr24An6D5GTqnP0TRZOxVomcuPzg4sK+Xus lvDA== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=y3Wn+08sAN9VokvpvlBwbpJiSQsLtcSXLgAihEQXJkk=; b=UGAxJHKgc6eODeUdeZo53wAx7hEWuVp0hFMUSHkUYoZ3P9NcXTfbDhagw/lpO1qgoj zPrpLfNZEh8T7SiLEci6pssVXkP34gfbaduD5VOOmyprO79RcgCb64vcH5nicSFDegMg jB8GQgo8irt7Y/OiVgk5+fWWuGW577Nix7lN4QjaZVN7SKGGdgSv4DoUzGuknKa/wb5r F54EiFTBI76xu95sPfmln7VyE9DW1L4s/0njjJRw0zAncrnikAwhDkvDRW6pTUhC3S1G b/HaGhCqcjvlEoUOmH06r/uoBX/NlwVJRQ6A7/lbfi6UfpYNknWiXCbw5fx3K5A/F32X uvgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vizkZqci; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n1si6495974qti.155.2019.11.06.03.40.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Nov 2019 03:40:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=vizkZqci; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSJfW-000377-P5 for patch@linaro.org; Wed, 06 Nov 2019 06:40:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37922) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSJZH-0003vL-9G for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSJZG-0007Xt-5v for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:43 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:42881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSJZF-0007XZ-WB for qemu-devel@nongnu.org; Wed, 06 Nov 2019 06:33:42 -0500 Received: by mail-wr1-x442.google.com with SMTP id a15so25308657wrf.9 for ; Wed, 06 Nov 2019 03:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=y3Wn+08sAN9VokvpvlBwbpJiSQsLtcSXLgAihEQXJkk=; b=vizkZqciyORoUPekFYkVrRLuEtCWJoBGDpDvfORmyh2xOd52JUWYURK1ffc2mBqRl+ mJiB7fNIpSoch6xjSY55tFFN7Bu4sc+gZVxt0dHkECRaqLvojqKtJwKYRwzST9EbndPM z8efbz4nfKqMYLoub1Mu0+XA+RYKsznbiUtrAPNxngrWxfcSD3a63QeWDAE8Osg/QG6W XjT72QRlXHYVvtv5cJIIhFmbG4XgzxtSJNWYo6fbFNbY1QXiUVrKU4+JxXjvHEQWBO59 nw98OPqHOp3NiEMHu8ihME3jcmuR+A74beGCwvDDDcuulXWsj9ZMnsaKqUt0uNOf4a41 pJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=y3Wn+08sAN9VokvpvlBwbpJiSQsLtcSXLgAihEQXJkk=; b=l6Aq74mZqxEhG+kiKnO+G76W9PcDA/N/STOcwwwNuiGGxOD5h+7bY0uvbCz3QnUpgG d0CoHHYuWP45uVPTaR/Ob0f00bbEKMUTPQc8oJUCBH3dyVFCeu9D6R3hzGsi/oPudLYZ i8u04E85icXycQZtP6oThDTfEWOD497u74R9jNt4ADOvZ5mviOKfhKAKUTAbiSj4zcnL 2kfx7wQs0sn+kl81bD8JbWMmivjkMOpZNivFrlRBaft4XxbKejjv0Fzji/UxWzOM45h/ KxakQ4q4LJ0+rphiFbW2OzHhufKURgvBLw+HAU7EG2MseF38ubrOXE1DVs568qH8NZGa 4bMA== X-Gm-Message-State: APjAAAXLGAyIR+NhD178cESYkJ0Yx3c7sBXAJqtp1TlkIIc5sJsMC9X9 iXnokIhqeBltTSxgfgTjFdF9pdwelS2qtQ== X-Received: by 2002:a5d:674d:: with SMTP id l13mr2287358wrw.170.1573040020767; Wed, 06 Nov 2019 03:33:40 -0800 (PST) Received: from localhost.localdomain (31.red-176-87-122.dynamicip.rima-tde.net. [176.87.122.31]) by smtp.gmail.com with ESMTPSA id q124sm1776907wme.13.2019.11.06.03.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 03:33:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 08/12] linux-user/sparc64: Fix target_signal_frame Date: Wed, 6 Nov 2019 12:33:14 +0100 Message-Id: <20191106113318.10226-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191106113318.10226-1-richard.henderson@linaro.org> References: <20191106113318.10226-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Instructions are always 4 bytes; use uint32_t not abi_ulong. Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20191025113921.9412-9-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/sparc/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c index 238d0ba00c..d796f50f66 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;