From patchwork Mon Oct 30 21:17:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 739279 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1336821wrt; Mon, 30 Oct 2023 14:19:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0MLI6Qphzm/JSaGqTTwsX5TPdP0zfrFkjHdrvyyr9PpIFnOghDf2Y1lhQUXcY05RFIcHv X-Received: by 2002:a05:620a:3189:b0:76d:a110:856d with SMTP id bi9-20020a05620a318900b0076da110856dmr13370296qkb.0.1698700764081; Mon, 30 Oct 2023 14:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698700764; cv=none; d=google.com; s=arc-20160816; b=goXkavQOvvmrESplViD02YAcIW+mXUS3de9YBkmXXVrBEYhpZNYuMW6cHu2ZufjIbD hERH5PQGCol31Ng9xYvuSE6nZpCcU9JwGzts2ixeejopILUpqAxAKLoatFHtRR5Bqm5N 95i3wuLsXe4xdcnClROnIu9FTLDdNTXmmgSaPWxfO3sy+/tNjZRu6TLRCWn6BP1fOSZV MzoWZiYvq9PUofXZaprR5d/6brWg7SgQot+hSX/bt4p6L+jECmmIxQUbIzvsO5JLTdG+ YK77ztUQeBZM0nNQc780W0r+FFilv39mNDh23R1QKapQs/e6qPKDPqaku1ewT1Xe/ntB 7BSw== 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=Ri0JhH0bqEd6DenOKDhZabd3UHTdrfzqwpuOkMZwzx4=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=P+RJcGkrbSkGE0GLddOkgjqUfDFxVV8+5aErGhKyApjX53VIgIYw3FT37ZkyY704xG C5kzVpkenV4vD5BvptlpIZuq01okt3CbXUSCGaZmAuV+bI4zCWipRX69Zyhyabq58/bU necSClSk2d3FwrHKM/TUHxmXNeY2mS5/EIRq6o12OD5CieMPsRLo/fa+N4Hww/e/1cHD IaWd3IEc4nEmgavdjzZ1Sri1Q5NZhvHGSDD2MeNtO64CtuztZI8FVYR15MiR8iUWCKs9 BaaLLSeRDGnbufyGKjsXo09YeG4ilP1sVGtM8moQbEO07mPTYG63xHPj0ktWGtMOi8BF 45vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N6K1Gqic; 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 s9-20020a05620a254900b00770f0ba76adsi6441696qko.678.2023.10.30.14.19.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2023 14:19:24 -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=N6K1Gqic; 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 1qxZe2-00013l-8V; Mon, 30 Oct 2023 17:17:58 -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 1qxZdx-000116-Fh for qemu-devel@nongnu.org; Mon, 30 Oct 2023 17:17:53 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxZdq-0006Vk-77 for qemu-devel@nongnu.org; Mon, 30 Oct 2023 17:17:52 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1cc34c3420bso11868395ad.3 for ; Mon, 30 Oct 2023 14:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698700665; x=1699305465; 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=Ri0JhH0bqEd6DenOKDhZabd3UHTdrfzqwpuOkMZwzx4=; b=N6K1GqicBzZwrIiMM4NtJLYYV+8l5BX5zHxV0isdX9KU/YGANjjmq3VRCQnpPanJST fymzqAUh7Z7ZOwDUygQPceb2VvukYlJG9Uld4dkhBMFnDl7fG5KCbVCNpKidRex7xxmc COW4+XxJX0OYO0f89PnAwqyVM7DxpEYMb4kutM/QlHtaIMN9YLFo1Ggwit8Wdx1kClNE Csl+f0fxmuDCCyznq4JCRMMaIE49VvrlT0ynnlHdQwYRQzPmlTGR8YJZDZlCL844old3 3V/+8J19CaHYOHlU0pi2GKjO9InB5hwDsTPhXD6K3iQOihfUH+Q3CQGLJasRUKsZShy9 FRuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698700665; x=1699305465; 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=Ri0JhH0bqEd6DenOKDhZabd3UHTdrfzqwpuOkMZwzx4=; b=EAeSzcjyvZXbH4NPfiiwJnhBSMfBq0vUqfyp6/g4P1+YNxlxBz2eB2pd8XBnxe92+3 Px8U2EmPqW/KbeSUbsp2LPlhQ2nIhOxzfIwM8+J+B+lkNUXVvwUdAEZuA1voo0CfFv3s rjh1VPeyOjraJPY+siXPVjKsUZWMxjxn9eb1CcJgI+fYe8BKBAS5QioXdWTUDk44Ngy+ uxhSvFR+h8gZxlI5QVGM4M8NtQfy8936sKpLqFgZ3vVz9A/a38SmaQbr8VE6gXBJTdpy ySDGhmGZC4P2R+ZhGJl2istKgFXRoDFWzin4DrhwnGURUCPpQ4MDabl9gqp6RVLkq5yF I1Qg== X-Gm-Message-State: AOJu0YzrtXMbZMg5QGA4f7ZtW/5WXKWRVBGOo9z7uWyZd4S9/LPbBXAY uqvPFF7a/1/Ro3WFX/yDTGY0UZz4JXUjIsor7U4= X-Received: by 2002:a17:902:c714:b0:1cc:40a4:9179 with SMTP id p20-20020a170902c71400b001cc40a49179mr2811904plp.34.1698700664713; Mon, 30 Oct 2023 14:17:44 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id jf2-20020a170903268200b001cc32261bdfsm4670350plb.38.2023.10.30.14.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:17:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 18/21] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FRAME_OVERHEAD Date: Mon, 30 Oct 2023 14:17:24 -0700 Message-Id: <20231030211727.165090-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030211727.165090-1-richard.henderson@linaro.org> References: <20231030211727.165090-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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.