Message ID | 20210517181424.8093-40-laurent@vivier.eu |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1347604jac; Mon, 17 May 2021 11:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmwAPIXwTWWZPBM4aEQZoYdvSVd60vTmam58tiho/sVqjwYbecjDRSMz/+cP1PChJ2lvMm X-Received: by 2002:a05:6e02:b41:: with SMTP id f1mr992801ilu.212.1621277137182; Mon, 17 May 2021 11:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621277137; cv=none; d=google.com; s=arc-20160816; b=ngAMSV2bmN1o+a6oHQwlpgNEGwtyIukcsgBFyMjCxq0YwJFhKkW8tMKGXsuyGHCkqP VkWKfo/zaLP6R7Qmc9jy7mS+elDVSotoVjV1a+IBx59SZA7PTAjcLWJU0T2ASGfpS8hf JujuU1cjAYQqog7jIqYdZj9nSHRAM+8tD+8zJn+3dUmskoCntCOw7UkL8/BBtyt2FRRy K9skjlwi0cQoPdXza/gOMeS7p7xSrbg6YgHOOFWEwhmjvcl9clBFUz5ZGl6hoGBwt3Oc qp7Vi4X0v/vPcBsTisckqu5QcQSiHn9hBDJFWbt36F8J9dfEQatyo5xqGPQAwsEDYv5z NxBQ== 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=1XDkHvh/cCuWadzIi6xVKJJPPCiYB2bHW85iDtvupT4=; b=jKvZlZBE+zo8GP1CgL9s7jvjctZ8lM2w49jKqx7VzhKflKMdq6XhUbMprqIK40Jiso Zk8U0ezh743rfqExQ614HbFCWVIdts0N7r1/448YosFzJkGub4c3lXl0fLDl188F1ZyZ 0O3XtsOa36PhSoZaZH7IyCsFGhhkvgHypzj0/aaFDBy1KZx21iH2DwjTMcSh4TltPAXP M261DjGDZUFe3jyGKc3eM3/nhGkZtI73JLLpv+VCV/VOXsAqjbDv5tS5m4Vt7RU9kEqg +co0AdkOsiK45KobyQySVpyWuUA7UaW19xBrcDUV17metcmwnDSXOUSxSlZ8hHHY3RNX m+nA== 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m4si9129370jah.87.2021.05.17.11.45.37 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 11:45:37 -0700 (PDT) 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]:45258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1liiFE-0008Du-JM for patch@linaro.org; Mon, 17 May 2021 14:45:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <laurent@vivier.eu>) id 1lihlf-0006j2-Hd for qemu-devel@nongnu.org; Mon, 17 May 2021 14:15:03 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:35847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <laurent@vivier.eu>) id 1lihlS-0004Vt-Tj for qemu-devel@nongnu.org; Mon, 17 May 2021 14:15:03 -0400 Received: from quad ([82.142.31.78]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mq1GE-1l4Mjs3kfa-00n8mB; Mon, 17 May 2021 20:14:47 +0200 From: Laurent Vivier <laurent@vivier.eu> To: qemu-devel@nongnu.org Subject: [PULL 39/59] linux-user/s390x: Use tswap_sigset in setup_rt_frame Date: Mon, 17 May 2021 20:14:04 +0200 Message-Id: <20210517181424.8093-40-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517181424.8093-1-laurent@vivier.eu> References: <20210517181424.8093-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:sDr+qBcJOWwJSUCZXGnJ7PntxOhThJtP/1INkQMxcVI61kaqbBN zNVl8XkqhtLYtz0TGJLgR8LFbbDiWX1Gx8/J+MDg+RCXSvxqCMmnPT7WNoT2C+pYAyjKmn1 Y6boePnV4XiLuqz2qrgG/E7FlIbN/AoOTdU7hM7MC9OmRUs7/Pr4GIO1vvwYrPHZAC8Nc2T C476RZ5Hnq1LT+ZM3rK8A== X-UI-Out-Filterresults: notjunk:1; V03:K0:QSpmc/rBGx4=:Vzl/XqzUllJ58RV5aFkSvh 5QyeI1WYUS6U2A5+uDF6UPN84079ZzqQqu5dOu3cbTY9n67x4ydMIz6yRsrnhg5PiqkJXH+Ab idTc7eFF3f6MsS6ht/qoQG1L5jdhla+J4Mjli8oY0WX02iJTGVs0XhlQHd74adW2Puzn0sexG lYqAmQf7sSeVQKju1UCeBqYAp6U6Vera1iLb2XRiu+nsyf/RvzjYQPWyKbsRL0EuqyiPNvHc4 NlV3jUQdsW0D2Fxlri1bX9kiXRukBBHWFPjN5akHXRTpT2DPZrQbUKpQmrhFVmeWfi5CGRxO0 UvYFFnAVtjyQ8MOfav2XWvLBC58cgkb7J11yh/LuG0OxLzjKPLLl8EShkEWQBwcU8G/fzGxwk rxvkvhmfXB4U/MeXXpLv8kB3RAYnkYM6euJ22WoU29M3o5I8WVQl1anPjsHRdId7GXm5jPaik YdY7z51xxD4Rj76V2ZlUXIQkEee9stGI4KDiiD8A2gkqXnPCRri7ozFkBVXyRQrfD/pSsiXa9 m1Lg4wUknZpq6I7r/6Z+3Q= Received-SPF: none client-ip=212.227.126.187; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Richard Henderson <richard.henderson@linaro.org>, Laurent Vivier <laurent@vivier.eu>, David Hildenbrand <david@redhat.com> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c index f8515dd3329b..4dde55d4d518 100644 --- a/linux-user/s390x/signal.c +++ b/linux-user/s390x/signal.c @@ -182,7 +182,6 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUS390XState *env) { - int i; rt_sigframe *frame; abi_ulong frame_addr; @@ -199,10 +198,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, __put_user((abi_ulong)0, (abi_ulong *)&frame->uc.tuc_link); target_save_altstack(&frame->uc.tuc_stack, env); save_sigregs(env, &frame->uc.tuc_mcontext); - for (i = 0; i < TARGET_NSIG_WORDS; i++) { - __put_user((abi_ulong)set->sig[i], - (abi_ulong *)&frame->uc.tuc_sigmask.sig[i]); - } + tswap_sigset(&frame->uc.tuc_sigmask, set); /* Set up to return from userspace. If provided, use a stub already in userspace. */