From patchwork Mon Feb 15 12:45:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1440534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DfPLn259Pz9rx6 for ; Mon, 15 Feb 2021 23:59:13 +1100 (AEDT) Received: from localhost ([::1]:53158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBdT5-0001YR-Ak for incoming@patchwork.ozlabs.org; Mon, 15 Feb 2021 07:59:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdG9-0004A5-E9 for qemu-devel@nongnu.org; Mon, 15 Feb 2021 07:45:49 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:50949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdFw-0000iB-G9 for qemu-devel@nongnu.org; Mon, 15 Feb 2021 07:45:47 -0500 Received: from localhost.localdomain ([82.252.134.158]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQeDw-1lY7vB0R3m-00NkYY; Mon, 15 Feb 2021 13:45:23 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 01/13] linux-user/mips64: Restore setup_frame() for o32 ABI Date: Mon, 15 Feb 2021 13:45:07 +0100 Message-Id: <20210215124519.720265-2-laurent@vivier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215124519.720265-1-laurent@vivier.eu> References: <20210215124519.720265-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:oKph+Z028sM2OW4CDO33cAwK1ohB25Th/DDnAJOSbQEC6lPBU8+ RkleIImUlrL8o+/CUN3I3Nj0zqq0My2XhVvIuvGBmgcuiOrmcmBh/G8SANbQuBRaSbeJ3ps iXYwfHhgm5jObKjcLAzRR7dVduflHkDW8JM5+k/RfPJnOSJP2Z9lQedncDdtN/H115TLN/D E9WczcHpFZYG8QOtS4gMA== X-UI-Out-Filterresults: notjunk:1;V03:K0:ugoxeImQXlI=:njLCyiAEdbiQzXxzQgYUvy crMOzAvB8P/b0rchL5QZDcKkud5A7sgNGjRWgUqQ5owQu1KylxXpJBxG5EM+RqhyeanN7gR+k 5HXLBNviK2u7Tkzz9FWYbPrDwd0++92kXgHNF6E0l0JqyInS9ie8dDkUjqC0rGcdSNfgYsA6g ZywtoEPXZKb0qEex1ghSOUNuhST1+Be84j0t6H+0ED5x2gfqQFWgHzLwE4x4irGPShCX8pWkk Y69n0YD6zxRwqhMkh+nMU0sX+tx9EzuUMXLlpduCPo9UApHiDTWJyc36PfL4YFw8MdwissUUa u9BV6sc4mqC6sFa52Szw/Z+k3KfrZ9KN4es3UIzSO4mk5wbgTf2/bhGiKiX5L+dbER0vheBWj uDudfQx2AJjPS55uyy32wTrqUmUaUuQnIPN8bbnRzgbyfCdnbQOdVyqgnQSxm Received-SPF: none client-ip=212.227.17.13; 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=unavailable autolearn_force=no X-Spam_action: no action 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 , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé 64-bit MIPS targets lost setup_frame() during the refactor in commit 8949bef18b9. Restore it declaring TARGET_ARCH_HAS_SETUP_FRAME, to be able to build the o32 ABI target. Fixes: 8949bef18b9 ("linux-user: move mips/mips64 signal.c parts to mips directory") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20201119161710.1985083-2-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- linux-user/mips64/target_signal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_signal.h index 799f7a668cd0..f1f0ed7f7067 100644 --- a/linux-user/mips64/target_signal.h +++ b/linux-user/mips64/target_signal.h @@ -67,4 +67,8 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 +#if defined(TARGET_ABI_MIPSO32) +/* compare linux/arch/mips/kernel/signal.c:setup_frame() */ +#define TARGET_ARCH_HAS_SETUP_FRAME +#endif #endif /* MIPS64_TARGET_SIGNAL_H */