From patchwork Sat Jan 8 06:36:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 530689 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp976781imp; Fri, 7 Jan 2022 23:09:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTKst/XobBWlzCrSvht3+hI0g/HymJJqp1m9MItwf+YR2w4/skT+MQrSsJ84gbPkoaAXAf X-Received: by 2002:a5b:4d2:: with SMTP id u18mr2781567ybp.647.1641625783359; Fri, 07 Jan 2022 23:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641625783; cv=none; d=google.com; s=arc-20160816; b=efo2GoUuMkxxyZ7xXyqvtmLnChUwKzvrd7nhtllMVNY5Cf0/HTPheYpB9kf02tqVBP vNDvOIU2rw/+Zo5nqRjuGeo10mc6umpTEPhqTZgQhi++3Xbaf1s24ZsHLj2P+TXy70IE H/karLLkBi5g43wWOQ3SxJCcTIwtY3fFVZLL/nJFQHshDliVvcDg+m8+Gc4BBb/9d57v sPS/SREbITbuo9iLVR9DIYiW43bZHBrIkHOWm286ryKdX+RF+mlOLgTlHbNzgAMjtN9b zqpzoo6RUDZ4Ecu+uds0m4DBK1Q1UQnSi07OWv/ihx0KNInIe3q0+UyboFXdWjgUjs4k jb+g== 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 :dkim-signature; bh=fm/3m5hyAUdcKM+wbinoSBlpdmK7ofC9QaoVC3ISJrg=; b=x/xqM0If3B6ibIEQ3O5guop+gd12cIzvZf2v2BhAMAfx5J2oofN6i0QBGoF4X2iLak DipSMWUQ86iDd0QkFRnZVfuLSP8Y1YiGmbciDEP097GlWSEGnhS8JJZbIt9XpGOVuful VS8ee7CE95uak912/1UCfqtlJMJM+KvL2uE6sR6uaub4Z6S+yTnAlRouAWb1R13UGSRc bMcH5r8waMvNi5CRl/EbfmY5X++4nb1GCwC75qE7j2zxZGIwIC+zyGe+R8mE5bYPTfJb gJeDgQgaqbEOAF9B+WxMQiaf41v4DE8YuGPBVggEOSESKbqqfQP3EBgtEZPnRBU7XG01 vqjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="u/mv3dUB"; 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 q62si690784ybc.548.2022.01.07.23.09.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jan 2022 23:09:43 -0800 (PST) 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="u/mv3dUB"; 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]:55358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n65rC-00077m-Nm for patch@linaro.org; Sat, 08 Jan 2022 02:09:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n65LS-0005dX-P9 for qemu-devel@nongnu.org; Sat, 08 Jan 2022 01:36:54 -0500 Received: from [2607:f8b0:4864:20::432] (port=35529 helo=mail-pf1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n65LR-000475-9u for qemu-devel@nongnu.org; Sat, 08 Jan 2022 01:36:54 -0500 Received: by mail-pf1-x432.google.com with SMTP id v11so7102997pfu.2 for ; Fri, 07 Jan 2022 22:36:52 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=fm/3m5hyAUdcKM+wbinoSBlpdmK7ofC9QaoVC3ISJrg=; b=u/mv3dUB3a7pbw82qL10Fs39mZinB29WdW1u+VaBalJzfKPEAUmPwntiwCAYA9bDXy D47yTH/SasLl+j9RLiqjbprHWxZQN0eqwFEfesiKORkvxg7o/C2yrwxIodV75J68qbO9 byQIXGffLkE6QNhhQJfAX7G0FMSNlmcY/wE1xI000yKr8WadXW67HpF3Ui95ZMcjvZAh 9qMkZko5/teB+V8A5WqQMf/CnATn+SU4Bg+Z9TnqElROAfr/pE3a7zsHtIVfoQYg+kAq l8qY/uEeeadq3v79mGr598z6b1olZDCS1TPiBoeEo2gwwnOUE14rO3W7rB1YQwItlRPd ch3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fm/3m5hyAUdcKM+wbinoSBlpdmK7ofC9QaoVC3ISJrg=; b=qOqiEMiZfehJIwEwq2LcvDbNebo7UNWfBEBSa2XTFnpupu5OHJwbA3jbjeFD6pU9IQ 3CSi9LslxHT1GT73E6+vD9g5qNwbIie/0QbTzhXAEAco59i/hFNMvbTDbsxSAA2WY8RK TcqVZnPBuuRK8dGJt+D0NhxGpWGj34ZqBvGHwN8fVg52eTTLqc0/zzIVD9/zU213O4T7 vrRU34dbsyGxySZzviBKihRXbH+PObKUzkl6FEkdn6fI8jdPT0OvzlwKOF8PeAewPcdU uYWSP+3rDw1Tzq8da6pLWzuCRUMhGctZf6dyA4hXpSKDVimZS6rs8Tc/JDyh0KUr91Qn QNDA== X-Gm-Message-State: AOAM532yrSi67tc2s5mXDq7jLB1scyeBLwySNyTvKjg6u0kZoRA78yu5 YVfKqX+TP8Agu7Xf6mzqB/KUxbp1BHsbhA== X-Received: by 2002:a63:3606:: with SMTP id d6mr18472282pga.486.1641623812017; Fri, 07 Jan 2022 22:36:52 -0800 (PST) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id z4sm840954pfh.215.2022.01.07.22.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 22:36:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 03/12] tcg/mips: Move TCG_AREG0 to S8 Date: Fri, 7 Jan 2022 22:36:35 -0800 Message-Id: <20220108063644.478043-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220108063644.478043-1-richard.henderson@linaro.org> References: <20220108063644.478043-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::432 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 7669213175..28c42e23e1 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 7682059d92..5702a6ad92 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -2548,7 +2548,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, @@ -2556,7 +2556,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 */ };