Message ID | 20210518053131.87212-27-laurent@vivier.eu |
---|---|
State | Accepted |
Commit | 819f6df1ef83385e59e182dc6223d1ad533d393c |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1788961jac; Mon, 17 May 2021 22:59:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCWPPWwWV6n+nzWDaIIDzTAYwbKdu6gJrfUO2Q/elW5/YuoKysKo9NaCtwyKhENKll3+z+ X-Received: by 2002:ac8:108e:: with SMTP id a14mr3125429qtj.28.1621317559743; Mon, 17 May 2021 22:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621317559; cv=none; d=google.com; s=arc-20160816; b=EdJmbPp4lSIF99oO0MLdmwfYDid2eBj0DaMfgVxQzbqcRXMsE8xPAndDe6PpZ/Ecad JlbLy1jVYG1sh/a90zFoyOAr6erjD9y9+xU51ytq071xK78sb4ay4eQE5Hldr6MkLjb2 /RDu6sHTzro5Kyvjw4Bg91wjbacdBQm+0vPK9XMzSKpUqhK+RX/9oksh+c1lUqid/1L3 w+AZlkJJoE4+vhXHkAZy7lUK2miHkghd6iyf95amwh8hORseT1f68WEZSjmSpQrkmTnO oybG1VZ3CiH9zepXDV9/fv0Vz/eMSCx25lxVEXCLVB9QuMtJplxDRQykBNLaJMbAkseA kJKA== 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=BB/2J3+06BdIrB+lW60VLV+vXyqThCXXIkncBvbmPcM=; b=ysT91Nvqp56fKxlavXzfKXHzW3a2l/BgPAUh2U5b5MtCsH2NogJN854/StRw+iPe/k dtVOuS+u2VHlsV0gc0tl4owmziriIpkdDAr6vwOXpa7PqcFYF8jj9aCDyG0sqzZOZ0IX StBEpvSx8DYEGX0EXPfvxx57u5HZZXRsM2IDc8r4IfX9XQLyfL72jJ2Qs7y7jfaDsay/ 77xUrBztEGYC71U34+rcIMNV2631PzhTHrMtnsZqGHv4U/LKvqPQ11UI6GryGmog4zbK c+HChjPtIP5V58OmkLAYmEmnIJIbUC+wfgOQxXlwgGyoV1uq+amS/OBykT+JHkC9ogUz JJaA== 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 q10si14133254qvh.157.2021.05.17.22.59.19 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 22:59:19 -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]:34250 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 1lislD-0001eC-6H for patch@linaro.org; Tue, 18 May 2021 01:59:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38582) 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 1lisKd-0007NN-QP for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:52 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:55627) 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 1lisKa-000748-8K for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:51 -0400 Received: from quad ([82.142.31.78]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MFKbB-1lgQR90nUn-00Flr3; Tue, 18 May 2021 07:31:46 +0200 From: Laurent Vivier <laurent@vivier.eu> To: qemu-devel@nongnu.org Subject: [PULL 26/59] linux-user/sparc: Add rwin_save to signal frame Date: Tue, 18 May 2021 07:30:58 +0200 Message-Id: <20210518053131.87212-27-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210518053131.87212-1-laurent@vivier.eu> References: <20210518053131.87212-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:qYmK0xUYuefZzH0MoLWsHZA4pHRgoMrIzl1AqxqvLQrdwW102mf qKm3oHhZpf7PApBYYFUJzZ4u4mLlG4XvqjYoYpvlamziDGO+RWH1elC0cI1D55OaqsHShI2 AKLxeDmqPF0Glz4WdzzXQGLsuMXAqz9/B82/l+Fy+xWvTs9/NTT78ziZ2itzqsuTAve8JWW 0r3Q80GAkwjFrh7Og983Q== X-UI-Out-Filterresults: notjunk:1; V03:K0:Pzp3nhEHQUg=:c3+smK89o9oAZLxyN2JU8e QXMH8y4dM6v4lTvtAvRQHIrhnZrbje0Z04Swmj9Rvs0kYihqran5v2op38cvQIRxVGrH07EjK 74KjgVAX5LcqEpPbRukuAnAfCL1A+SaCgHp/wprdRgsf/KH5cNjhgmN2CsXtYfS+fOIJiTXGg SBMOpmFzHRY9NqnpxZKuDBH4jOwkqBUZacdGis5OGqZ5ALvc1HxNI9qPKHj8vqXMzEnxHHpmO 4InASAmAHqBb/h6c0AyprVLsIyl/ESQp/V1KjkO0P44u+rGfoD3aTX7w/Sz1t3tcaukc8MHTx nv/0sDW4H0rnuDVGNuwlDRgiPWe9A0NuEk99fv9b+yiBO2fZ10ydf2hykgTwOvdVIhR/fSPsh uA9OnJyKCF2VjU1axXcL+TTaGdVabuoyzXDtzUCzHSJaYsdQh0z7xgRiMm6wNbBBIa1THjgkd WutCHaXrVoHJGtn6CBBkHSNKWfGoUedEINJNwLY7h/LjN2wBfGKjxhkfidEJhsW2IXly2NjDT nK0M5q3lRJiijN+Ve66KTs= Received-SPF: none client-ip=212.227.126.134; 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> 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/sparc/signal.c b/linux-user/sparc/signal.c index 59bb4495121e..4a0578ebf37b 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -62,6 +62,7 @@ struct target_signal_frame { uint32_t insns[2] QEMU_ALIGNED(8); abi_ulong extramask[TARGET_NSIG_WORDS - 1]; abi_ulong extra_size; /* Should be 0 */ + abi_ulong rwin_save; }; static abi_ulong get_sigframe(struct target_sigaction *sa, @@ -208,6 +209,8 @@ void setup_frame(int sig, struct target_sigaction *ka, save_fpu((struct target_siginfo_fpu *)(sf + 1), env); __put_user(sf_addr + sizeof(*sf), &sf->fpu_save); + __put_user(0, &sf->rwin_save); /* TODO: save_rwin_state */ + __put_user(set->sig[0], &sf->si_mask); for (i = 0; i < TARGET_NSIG_WORDS - 1; i++) { __put_user(set->sig[i + 1], &sf->extramask[i]); @@ -303,6 +306,11 @@ long do_sigreturn(CPUSPARCState *env) unlock_user_struct(fpu, ptr, 0); } + __get_user(ptr, &sf->rwin_save); + if (ptr) { + goto segv_and_exit; /* TODO: restore_rwin */ + } + __get_user(set.sig[0], &sf->si_mask); for (i = 1; i < TARGET_NSIG_WORDS; i++) { __get_user(set.sig[i], &sf->extramask[i - 1]);