From patchwork Thu May 25 18:10:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 685609 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp500919wrt; Thu, 25 May 2023 11:11:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YyIe5j5zmwQNzZJmjnudXvVLINH1iDYKQ9aT0HPr8T0nHS5CiA++dTZbPCSeFPU0Or9BJ X-Received: by 2002:a05:622a:13c7:b0:3f4:e3b1:8d36 with SMTP id p7-20020a05622a13c700b003f4e3b18d36mr654384qtk.20.1685038312862; Thu, 25 May 2023 11:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685038312; cv=none; d=google.com; s=arc-20160816; b=rX9JHvLybaCyPebsoEyqHFHsBU/DvIaRAdt1ztPt6UE09/NYUwp7u9JPrYQtri8XO9 VZwmjlbm/1bMF71E0dwB9sWbSc8lobjr0XpDb+BvgnyAXoJlbUNrEAhSr5zBchNZbRB/ isgoTTdP0hDjHeLMuImuXmawJJDNodj2LNovElPNKlOf3UhosDeQ9X6SDKCBC1vOnWE2 ih8S5aEI65bOoKO6d5+YmVB8zdpgE388KEOecZhjxKD2L9UtwUUfU7vEYRi+mCTpShsM TdIvw0Lva6ioZuX6gjwClXyYXY20VDsS76l+PL21ODJiTPo6d6J50Z2sRLylUNS93opQ tQsg== 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=8ZDJh+YnFUCknSRFGXVYE0jRPMbbTzyNWKw2JHeS1ag=; b=aQQS1yeCPo9MgDFrsZQozboB52Y0U0TFwQtQXY6XyHRVahsctHGtr+23SEwTm+qaWM unTxpI16MUSYPibki88GZAP6vh2lxK9yS/ZDtTLKrs4IsKUCXGCwxsLpK0FeCXBdLMyT nID5G1VuPQo2jcI4hv70jO5Nn+GWz6Dk4Q4Y/Hy5fDO0bZK2bJexVSTW8/oM5u1iE+BM xTlTDDnkk+G6FMoXYECpyGto1wITqSgjYLGPF+yNalxU9BhJ2mZtqnpK/Uai9WYGJpSR iTB2mzYa1UBcaXnWGPe+mhD8A3YSfmSKYwZ2lqvZ/NK+uwUM3P+jgpPOHRUMdAh58yjz ulkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nl2HW8jU; 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 u7-20020a05622a010700b003f38a3ad15asi660861qtw.633.2023.05.25.11.11.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 May 2023 11:11:52 -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=Nl2HW8jU; 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 1q2FQC-0008LD-4e; Thu, 25 May 2023 14:10:44 -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 1q2FQA-0008KK-C4 for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:42 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2FQ8-0005qn-MZ for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:42 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1ae54b623c2so16879305ad.3 for ; Thu, 25 May 2023 11:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685038238; x=1687630238; 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=8ZDJh+YnFUCknSRFGXVYE0jRPMbbTzyNWKw2JHeS1ag=; b=Nl2HW8jUkETIgYamiCxDmE40ZQgscvzyTP9DVZm2vud0T8/CnnqK8LQnGr2mJuoKDf UiRNREb4AYiW7v77jpeN6mSbCpylXW/IX8jUjQqfECchJuof2/CpnMtPAwj1Q+CNGx9Z /6R0vqWf7jDq5lChlu4WXtSL5n7v6GwSaKbIZYQ4K7sfemRW4jBBHWE/F6Vx7QXEqz3v fuHuGmi/YCmyT5zbrnERuQoPCOc5fqLTcB2sELyICGeKMbicrk7kLe7TXZALHsKYTgPQ OpTEsGYZsO6jXgnaUWhLJ42T/On98+PuddYWG0yLyVCunIXiHGm6CiKJX35OIYgMsMZ+ NvyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685038238; x=1687630238; 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=8ZDJh+YnFUCknSRFGXVYE0jRPMbbTzyNWKw2JHeS1ag=; b=WBEExABVALsTZDWIkvtrw7MPMGs9Q3iG8OOP0NgFhkPfEjU4ctSIS9xw/pZmhD/d3K nukqm/CqBc2NjxM9ZjszZIiEbl+BCA6gv7vUXQ5uclp/5fGz9gzPZEvkX7f6lZ4gb+yl RzqQBJMKHMFEmXH0011ZdsYjJZ9jvaRsS0Ve0++SWfRJjKlN6SiaIk3zLGJxkkSd8kDc Sa09g/RnRoASt/khv1/DEBhJmDdGfT7n1Pf2UlgmdKjnnYWXBu4Hw05kI4QehBW0knfT AIcl/WWjkQhtXP1l69gVOPIEiD8YBcuIb+23zxAbfGwTP9/GT+iqpTNklR+yWnxO2xa8 b/IQ== X-Gm-Message-State: AC+VfDwWgKprxgxe8/cMVmJgBWaKjORrBL647OpZFxpE0gkRNFTyTvrz RkOGbtHMg9hJrt/L9VNukNGAVubmxfdZpnvqJr4= X-Received: by 2002:a17:902:ab8e:b0:1af:e295:ad56 with SMTP id f14-20020a170902ab8e00b001afe295ad56mr2309323plr.49.1685038238531; Thu, 25 May 2023 11:10:38 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:7ac5:31cc:3997:3a16]) by smtp.gmail.com with ESMTPSA id m18-20020a170902db1200b001aae64e9b36sm1710243plx.114.2023.05.25.11.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:10:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 01/23] tcg/mips: Move TCG_AREG0 to S8 Date: Thu, 25 May 2023 11:10:14 -0700 Message-Id: <20230525181036.1559435-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230525181036.1559435-1-richard.henderson@linaro.org> References: <20230525181036.1559435-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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, T_SCC_BODY_TEXT_LINE=-0.01 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 No functional change; just moving the saved reserved regs to the end. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.c.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index 7277a117ef..46b63e59cc 100644 --- a/tcg/mips/tcg-target.h +++ b/tcg/mips/tcg-target.h @@ -76,7 +76,7 @@ typedef enum { TCG_REG_RA, TCG_REG_CALL_STACK = TCG_REG_SP, - TCG_AREG0 = TCG_REG_S0, + TCG_AREG0 = TCG_REG_S8, } TCGReg; /* used for function call generation */ diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc index ef146b193c..ee6c2eb872 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -2183,7 +2183,7 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op) } static const int tcg_target_callee_save_regs[] = { - TCG_REG_S0, /* used for the global env (TCG_AREG0) */ + TCG_REG_S0, TCG_REG_S1, TCG_REG_S2, TCG_REG_S3, @@ -2191,7 +2191,7 @@ static const int tcg_target_callee_save_regs[] = { TCG_REG_S5, TCG_REG_S6, TCG_REG_S7, - TCG_REG_S8, + TCG_REG_S8, /* used for the global env (TCG_AREG0) */ TCG_REG_RA, /* should be last for ABI compliance */ };