From patchwork Tue Aug 29 22:02:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 718270 Delivered-To: patch@linaro.org Received: by 2002:adf:d20a:0:b0:31d:da82:a3b4 with SMTP id j10csp244977wrh; Tue, 29 Aug 2023 16:30:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn7dYTnjuqy+zOv3DJIE+qZjCjhxU+yTy/phvZ6upFIUccamPPnqpmA7LPj/FwPOEwDVHD X-Received: by 2002:a05:622a:178b:b0:412:2b9a:3b3c with SMTP id s11-20020a05622a178b00b004122b9a3b3cmr552654qtk.59.1693351812099; Tue, 29 Aug 2023 16:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693351812; cv=none; d=google.com; s=arc-20160816; b=bkTsP1sUoh9+Au4b+oOrtx+uxRpo/6dqBcabaOxLxX+K3ZPJxhtMyzh7LrGSh3zhn1 33KZG7oANFI1t8Tmsguab614BtBbj/AIxNMpVTQJd5zvLfLiZLy/U2vpjsYTYP75lrzK oN0tjZIPw8TtwYTSrpdHZ1NCgFV+LDUCnMDWvksgZW1Y6ZHl7F97kUM9yWASZraWGADK FauNZDM0cUQ85Qs5LAAzu/BKoXJxbOZGT0SwEB0dtzMhFZqK1Zn5QZqmw/n5tIxwFVft kepOu4/uisJSk//1s4IYodBIidKSxNyLiMVPn0jLEI7Rvu34Ruk4/7VzXSj1na2E5qSM R9mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; fh=yAk+WjNOVgQtt4XdbfUGN19AdnXYnHgxXE90MyVs5ko=; b=rg7Yf1n0qIM8KgG0mv6Y6ZvT45/RsN8352OPkHa96cmDnv7EJbBZ5DqCVb9NtvfATG w7Sut2wx/lGGoApT9omQOiFm4uXGzg2LLHNHrtIE+aiRw4AdpJpinJeskbFCEnh6nB+m r3arZCyoXqV2g3N3nI3axO36eSQIv16vXzRssflF+r9eqkJ+V3gzKKC0HahjyzONIiZf hZ2/Gm+9s6zbS1/1rKCrOai9StVhuDDHR7rYik1X5nLbxYeE2vCPVBtfRhPWUFUhRh/O 9amZViAJpZ5bkQD9Vb0ioJLevWxzE0wE2fz9JwIa2ul7Xee8gKbSjDoGFGMFFbfyinsn VT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oWlqfU2h; 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 u19-20020a05622a011300b00403ef121a4bsi4537439qtw.733.2023.08.29.16.30.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2023 16:30:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b=oWlqfU2h; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb7ov-0003GD-KI; Tue, 29 Aug 2023 19:08:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb6nY-0002Sg-Eq for qemu-devel@nongnu.org; Tue, 29 Aug 2023 18:02:57 -0400 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb6nV-0004BQ-Ic for qemu-devel@nongnu.org; Tue, 29 Aug 2023 18:02:55 -0400 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-57128297bd7so3168628eaf.0 for ; Tue, 29 Aug 2023 15:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693346572; x=1693951372; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; b=oWlqfU2hZ+kWwQQlvK1SVEH/+RFgewXJG91jsLi2bQgXqwSOfylnYelmr9dIXF347j T+peIJGMLR1m0lI2P/H9eQraU60z3nzvFwwDDinyHhBU80gX6LNUiwweQaa5+jlR2LP5 HF+5yfzT8rWUnFoEWq8GnF/Fr9b89/Kzjxgxqnsw+trpiP0bPIfoXmIe0OE3yExiWsrX qqPpq8km6EetFOfl6FaVoonAzoIba19AtNJ6/R7rN31MMQPl1j5dzXazbg5HZTjEDTWC s5GSSC8yxHXCBouXG9bcCHwHHJSb2kWvngKIx1PsM8WWL9MXioOKXmnobtUjEPD1rCtS 7keg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693346572; x=1693951372; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6RKu2/5G+zSGtoRuicJK2UTVps/EcNkegXQWs2RCjrs=; b=LXWR4KiwAaWp5IMFHEVMQs0RbY2zQkOe3SeAoWGWI9LdAcYQZjS+wmOJTuw9a4CVaM QWOktV+CvmD1QWyS0e/U5O1myHYcLFL2nfxwdgGcpByfa6FdLtOylWKRbDbiPCjWZcWf m5ZQHw/lVxVEi5pRwxL/teGGYNFgge2gzQiDplTXfLX6rTMGc3AJfnnt6PlOqh5Xc8Cf RDYuyNw5q5DGvTWxy1XPuzOk5edLt3kOiJLRpyyzHIRuJdA8lpL+8S97WlXdo8MXwFRQ GN4oEtjjYQf6fxWLM1+IdjsIBTgr0WP+CH36L0gqw6o7tNnlj74LvpBimtvVl+CgSeIR JWCw== X-Gm-Message-State: AOJu0YyJiMJvGb3nqvkE3J6oyBFM+qezd2vTfk6U5bMKDHRUuXXZLT9g t7Ywwn/9sp1R0G9cW1By67PLl4eMTSkyDQTPYUc= X-Received: by 2002:a05:6808:14d5:b0:3a8:5207:1d88 with SMTP id f21-20020a05680814d500b003a852071d88mr528428oiw.49.1693346572019; Tue, 29 Aug 2023 15:02:52 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id b28-20020a63715c000000b0056606274e54sm9538196pgn.31.2023.08.29.15.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 15:02:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, laurent@vivier.eu Subject: [PATCH v5 19/20] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FRAME_OVERHEAD Date: Tue, 29 Aug 2023 15:02:27 -0700 Message-Id: <20230829220228.928506-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230829220228.928506-1-richard.henderson@linaro.org> References: <20230829220228.928506-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- linux-user/s390x/signal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c index f72165576f..0f8b8e04bf 100644 --- a/linux-user/s390x/signal.c +++ b/linux-user/s390x/signal.c @@ -26,7 +26,8 @@ #define __NUM_FPRS 16 #define __NUM_ACRS 16 -#define __SIGNAL_FRAMESIZE 160 /* FIXME: 31-bit mode -> 96 */ +/* Minimum stack frame size */ +#define STACK_FRAME_OVERHEAD 160 #define _SIGCONTEXT_NSIG 64 #define _SIGCONTEXT_NSIG_BPW 64 /* FIXME: 31-bit mode -> 32 */ @@ -63,7 +64,7 @@ typedef struct { } target_sigcontext; typedef struct { - uint8_t callee_used_stack[__SIGNAL_FRAMESIZE]; + uint8_t callee_used_stack[STACK_FRAME_OVERHEAD]; target_sigcontext sc; target_sigregs sregs; int signo; @@ -83,7 +84,7 @@ struct target_ucontext { }; typedef struct { - uint8_t callee_used_stack[__SIGNAL_FRAMESIZE]; + uint8_t callee_used_stack[STACK_FRAME_OVERHEAD]; /* * This field is no longer initialized by the kernel, but it's still a part * of the ABI.