From patchwork Fri Oct 25 11:39:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177722 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3571090ill; Fri, 25 Oct 2019 04:43:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi9K687mc7SWyB5Oe81Z126D5yjHy2W8JNYEgYUWgh7tsAis9QJkk0gRX7O3vFDQYy8c4s X-Received: by 2002:a17:906:e101:: with SMTP id gj1mr3026017ejb.253.1572003806144; Fri, 25 Oct 2019 04:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572003806; cv=none; d=google.com; s=arc-20160816; b=QFvdPeQTxZllRQvvWxfnWbstO2jRUGwMkFPCtRml799170cBFOFoYb0AZFbkw6Ko1G HsY9cA1n01xXuQBWQRVXUO57dpS0keQg7donJ9dANqEvm3pJ6gdF2eaBORR+5aQbH7Kq tVdsiaR4QPz53cpF7OF9pQcE9S9zH/i9oaUD3GzikyCj7NolVz4/oIk+heGG+AHIamoc 5yahbpdNyzaLTeXYfkpBb270u3dn6VU6uXTQFPboMJij5InBSNB93ksYsl3qvA6hUT+L qbRXblW5VJUEF6M/ozuO0muvsnkV1xwyJDU9dZea1RGR+OFfPRIQxnpvEvgVQU2Goit6 Pfvw== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=DlXXOhTdrM3bVVr6VG88KwpML+EyXMPXZ3h5425yg7c=; b=qcJmhOykFoCcIcubkRs4ijVhy6RyChdkuXmA79UNZ9Kwe9G+HOsJJRJ1/A+bVkbmTN dDRUNs+PzKdWlX8z4jkns/8spnf0BXmlVOxuy9HhbLrmhrTBYAp8DxruXep1eTQ3DZib Jq1PtEl+M2zHpsNyPvXrwFlD+jvyZgfamwHE9AOB4scp173fO9dJbn43X1qRsFk8eqpC MSvSi1xEGFcdk1f8YstAHDyPIe3od+6dWJFcPrgpT8KMqqyBdbp+icJQ2EHDubuStUcI juEM3Yy1GIlT8O1gu7CRYyGzd7p74qWmDW0n0a1VCHK/lPzOdJB34jDAe/t85xCSQ10K SfYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZKOCAS0z; 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=fail (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 26si999160ejw.283.2019.10.25.04.43.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 04:43:26 -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=fail header.i=@linaro.org header.s=google header.b=ZKOCAS0z; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNy04-0004VR-Ox for patch@linaro.org; Fri, 25 Oct 2019 07:43:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNxwN-0006XP-0C for qemu-devel@nongnu.org; Fri, 25 Oct 2019 07:39:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNxwK-0006dS-FR for qemu-devel@nongnu.org; Fri, 25 Oct 2019 07:39:33 -0400 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:45247) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNxwJ-0006cV-9j for qemu-devel@nongnu.org; Fri, 25 Oct 2019 07:39:31 -0400 Received: by mail-qk1-x741.google.com with SMTP id q70so1373453qke.12 for ; Fri, 25 Oct 2019 04:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DlXXOhTdrM3bVVr6VG88KwpML+EyXMPXZ3h5425yg7c=; b=ZKOCAS0zDwnYBsA1VAnnjCkenRE6kQmZiPNdzlupEPL4+IjEq4rlAJ5nEd3/TW7qsC tWtfA+9n9ojS9NGxZi0f/H0QlmLPKITQSMdm+aNaQKJi81RsprZrMzdhyUdzdSjDGFWW eJFvk8nnxgl6G9SZKN2DvSb5W9G3ne0p/Xzxm/gvi2TVwWvfGd/f1xdYeA63rG02pIWk vHYbenEs/VyTuInmprNfuq7F80XgQOh9bEi+J4cUVj7Ps6FUhUzW2/j5vgy5g+ymu/ZO /59mzCwx7Qd7Uwhwl98nR3+VXph94aiWNg4V5lPKShlKhqw+RbiIdYZphFUlPZfJf5+r ueOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DlXXOhTdrM3bVVr6VG88KwpML+EyXMPXZ3h5425yg7c=; b=NfEhwBw+eK9cipl1gz9IxLuxU7dfkmJcN6auOOgzy7R5TjPpVolD9DBn2DHScOFcg6 Y45OaOMkpwMtqKctBitQmkY48ThvtOy2PQpijtwT1zBEw0WGGkHsNjmQdpxI381mGw+j vXMUiJ4j9qZNO/ustBbtsobZrz/OaZSnRkoYLpFb0qYa++PKIhNpEVTCwB+vtM4WYl3C nD1m8qx7P4yP7BhHwnCwfX13CW4AyjeRfO1CdWmNCRxfQ99UYqP5zcuhYUDiZxqXuZkN YIWu/vzh/sOzQJaJPhZT922v3Hw4yxFgDocPvMBL3MQpAEc7ne8HiIDeHWclQ7UmqrwO RkAw== X-Gm-Message-State: APjAAAUJeuoGECvO+EpjIZGdRvep2YiVwE6Q4T96wEu7usTTCR8FBQOe XUXuV0wSiC+VYlRuNJJJ49gRMyu4K+U= X-Received: by 2002:a37:e407:: with SMTP id y7mr2242107qkf.77.1572003570488; Fri, 25 Oct 2019 04:39:30 -0700 (PDT) Received: from localhost.localdomain (rrcs-172-254-253-50.nyc.biz.rr.com. [172.254.253.50]) by smtp.gmail.com with ESMTPSA id x38sm1473335qtc.64.2019.10.25.04.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 04:39:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 07/12] linux-user/sparc: Fix WREG usage in setup_frame Date: Fri, 25 Oct 2019 07:39:16 -0400 Message-Id: <20191025113921.9412-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025113921.9412-1-richard.henderson@linaro.org> References: <20191025113921.9412-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::741 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: alex.bennee@linaro.org, laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Use WREG_I0 not WREG_O0 in order to properly save the "ins". The "outs" were saved separately in setup___siginfo. Signed-off-by: Richard Henderson --- linux-user/sparc/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/linux-user/sparc/signal.c b/linux-user/sparc/signal.c index 0db4c5f84f..efb0df7e2b 100644 --- a/linux-user/sparc/signal.c +++ b/linux-user/sparc/signal.c @@ -192,7 +192,7 @@ void setup_frame(int sig, struct target_sigaction *ka, __put_user(env->regwptr[i + WREG_L0], &sf->ss.locals[i]); } for (i = 0; i < 8; i++) { - __put_user(env->regwptr[i + WREG_O0], &sf->ss.ins[i]); + __put_user(env->regwptr[i + WREG_I0], &sf->ss.ins[i]); } if (err) goto sigsegv;