Message ID | 20210518053131.87212-24-laurent@vivier.eu |
---|---|
State | Accepted |
Commit | 44a5f861718caeb6f7b1ac7a6c279d32fc84041a |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1790820jac; Mon, 17 May 2021 23:02:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQnLnGmYAvxzmwPPJuGcmMQHpXWdqfsu0LXERvnDVdUhG7HqpmHEMCLkqqTHqvVxUSfX/N X-Received: by 2002:a67:fa84:: with SMTP id f4mr4458161vsq.59.1621317721964; Mon, 17 May 2021 23:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621317721; cv=none; d=google.com; s=arc-20160816; b=sGsaDxSAQKW39YYNkfav6tBPpUAldYvdprpeMMdhH5i2hvCQKCPFxcZFgmryQTBZje zDkWV5kQfzlLtSvLVaVlBMmXCFKFOxhCNi+JFM4dbg9cZKEsMP6uZcGVvvCvN5V43ti7 5lgcXGn9J7Ps/LYupvGp+EJCPVwKUTvDAVgwShxSuxS+LnYDDjdIy6U704NLaKCGf1qP MnDTf15BMo2mudCPmMomddfIsm5aH2cAktJgKGYPrxCJjZwuiozHoRWQ1nEvYsU6caMN Kk/9vDtPzwrww/ypLFKDmH6RfP0LWL8JlOfsGmUuTeg/RGvhU+PNoYouJgtG8WSJmNkh ri+A== 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=RjmzNiqX/HTvl9sPUYpG2flxCzIiFrj0/u9nqI9FbRc=; b=0OpvWHpYxaCTpurqWJGDHFEnA7NkGGjEc+D6/cZR59YVx9PSODy2QT+GPOCZB6dX5b bW+rXkvPIGslwMn3+W+XoLyau7dSWB0dHjbSfGxa40Ga0zIEKkcLzkoD1pgIHHoiBmpI bALzrPEkh9I/lpvycQO9GRHyvDs9xM+8lu+SQ1xOE5aHN1CI321924boGR0CgA+OX2kV BtBQ9aWvaNSimOo3RMGx4KcKv5npRsYaJ7e7wNuOQHVYZD9g0cdVVBdobIsEu4njbw5L sVy0iWf8HdqVwxQlO3pR/G8JiSWtj/eJkPYULK0uRdQq2hm6Wo9J0yGGtjKcIA6YpXGy UTxg== 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 x184si8840629vsc.325.2021.05.17.23.02.01 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 23:02:01 -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]:40006 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 1lisnp-0005az-BJ for patch@linaro.org; Tue, 18 May 2021 02:02:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38618) 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 1lisKf-0007SF-Hu for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:53 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:53775) 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 1lisKY-00073X-Tv for qemu-devel@nongnu.org; Tue, 18 May 2021 01:31:53 -0400 Received: from quad ([82.142.31.78]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MUpCz-1lrMdl3Asz-00Qfxd; Tue, 18 May 2021 07:31:44 +0200 From: Laurent Vivier <laurent@vivier.eu> To: qemu-devel@nongnu.org Subject: [PULL 23/59] linux-user/sparc: Split out save_reg_win Date: Tue, 18 May 2021 07:30:55 +0200 Message-Id: <20210518053131.87212-24-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:K2qmxzMh3jHMdE92C7fZj5Oufy+9Fm/bEJ+tQggSkWkjLNtx1r4 m70N24jAF3GYddMuVcXMRoXsKiOzFBqA8vpgV2x/MRbhUsfYZ42zMBr84yI2e7QraTA33pZ 63HOyA39oIPrpmFmeHFzzKA/3qXvv0lY5xFpyo1IxOstp7kWTskDhpWNGCnC/Dw9PsLtWt2 a3wl9HazHPgdHh5pz47WQ== X-UI-Out-Filterresults: notjunk:1; V03:K0:3y1/3yzFB44=:qDynCUmxMyFaahYlWNakRa pQyYAZ05xiiBklRvzKK6PJa4d9NW+hxTgQNXjGewkqUvcAFZhaPqX6lzi0JAC22YVkzH8Tpdm egIkKPXKukdIVLAW/WZniHMc5xAvL9GDY8RmJQE3kQoyqu1Zuz8W0km16rA6MvrHSLB+g6pEh XV9e3vwm4ZyjSXwGHFQ1ZnJNu5y0hRs5mXnRwEr2cemAXy5jOTrDzRKIolw4K7W7sq7XSgaCe A2cYosF1kPyFDNQ7YnKuPyZIgjSQ7SuJaa/YuSt7MezvxdiEhg9+C41RYtNS8F9jt8m9OHPzU +o6+EBOsdO1U2ZK3YzbwrKlXoIeQOzMyo8RGHRXrPiS1/imA0/chzqOTEkHkEeGuiGR9D1gcM HJUrmKaZTFWS3p0ZCTvtHpOII6utiUwBpRvDUBWnkhqiOmYFGuQWCBh0XaGB2mTSBUo1o3Q4V CY5Zfjjm/5xNgTZ9+HAKvDMvjeRoLi5uoGgA8UTwhgWRER+L7qJCjAa7/zVdEY3ULwikewlzH pK+pCq+YsXlIGPJBTEHzfQ= Received-SPF: none client-ip=212.227.126.131; 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, 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 0d9305818f8c..69fee5a76a8b 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -150,6 +150,18 @@ static void restore_pt_regs(struct target_pt_regs *regs, CPUSPARCState *env) } } +static void save_reg_win(struct target_reg_window *win, CPUSPARCState *env) +{ + int i; + + for (i = 0; i < 8; i++) { + __put_user(env->regwptr[i + WREG_L0], &win->locals[i]); + } + for (i = 0; i < 8; i++) { + __put_user(env->regwptr[i + WREG_I0], &win->ins[i]); + } +} + #define NF_ALIGNEDSZ (((sizeof(struct target_signal_frame) + 7) & (~7))) void setup_frame(int sig, struct target_sigaction *ka, @@ -183,12 +195,7 @@ void setup_frame(int sig, struct target_sigaction *ka, __put_user(set->sig[i + 1], &sf->extramask[i]); } - for (i = 0; i < 8; i++) { - __put_user(env->regwptr[i + WREG_L0], &sf->ss.win.locals[i]); - } - for (i = 0; i < 8; i++) { - __put_user(env->regwptr[i + WREG_I0], &sf->ss.win.ins[i]); - } + save_reg_win(&sf->ss.win, env); /* 3. signal handler back-trampoline and parameters */ env->regwptr[WREG_SP] = sf_addr;