From patchwork Sat Apr 8 03:03:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 671495 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp611676wrt; Fri, 7 Apr 2023 20:05:19 -0700 (PDT) X-Google-Smtp-Source: AKy350bYMnKsqQp48aKuFTWfIZRk8qA//+OuyGpm0jYJGNaXPeAu4Hpeo1KFXM2A/qFs5woiAchm X-Received: by 2002:a05:6214:2506:b0:5e0:e52c:5d87 with SMTP id gf6-20020a056214250600b005e0e52c5d87mr9462647qvb.48.1680923119164; Fri, 07 Apr 2023 20:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680923119; cv=none; d=google.com; s=arc-20160816; b=KqLqZ62Zu7uNa6+OALgu4VmKSXupFggkygyrbQ+8lfeqDmjA8qERUXw4QkS9MW30p0 RYj5qXhmhBnTSUiD5WA5qe9XX6OC0drCGJhTYP32FV//vcBgLdULs4zk79W65pnOaiVr Y9UPlFTUV2pgUGRhtOeeP4oPjPVCRSCUAXrhLDoJURTHqUuLKTznmcMDx0o5WMmuKtaf n3mesfXuTSwEMH9ExVXnTFS9KwnZz3gHujRhvJYI0Hgaz9eS69xqzZuP3+/MI6d8gMgN wfXlCwZet9ooIyXJT8CRIYC77li785MIFcIb0+ddBFF6hVUdwbN8AcXWQt0OGv/GBgqu UD+A== 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=DIvMa6yODJNeTBsR2OjDHB1GmvQgxFX82aBlXYH2wug=; b=Ix+dZjFHAfp7gODtfaXD28t9T7zbysUxvcqDWYtXWpTC21QuvXvZ7mrcz9SwPcl3Wy /gUMSJnhW1fJN2ohOHLm/VOY4FiLS1BOQiCWfRgUkCd5O3Msp8x4cBR9FshbzcU3ip6o vttuqxYo9m1vhiXlswVkZjJG7DFgoWLSTjwvmMzhiwMrV8V1pt1PySQ+1pmK1NevfpOM ddq5wUz1OHI9TCK5KoLKNfb2KoqQwpTFbuih2Kim9CZGCxQzbjmFniE/N/FZdqxuwCth cqv8jyOuih5ylOQqzjB4s3Zk0cH//vNSCmCfFbA/Rs8vZLsNDTwp+4xa+0kRTw1jukC2 ypBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VQF/omSn"; 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 j12-20020ac85f8c000000b003d3b9f79b50si3637003qta.467.2023.04.07.20.05.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Apr 2023 20:05: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; dkim=pass header.i=@linaro.org header.s=google header.b="VQF/omSn"; 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 1pkys3-00045h-HH; Fri, 07 Apr 2023 23:04:07 -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 1pkys1-00044y-Al for qemu-devel@nongnu.org; Fri, 07 Apr 2023 23:04:05 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkyrz-0004V3-6G for qemu-devel@nongnu.org; Fri, 07 Apr 2023 23:04:04 -0400 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-24059dcdd90so186174a91.2 for ; Fri, 07 Apr 2023 20:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680923041; 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=DIvMa6yODJNeTBsR2OjDHB1GmvQgxFX82aBlXYH2wug=; b=VQF/omSn3a38pU5ljC0bM2Y438nmFjf/SeLl9tiLfA/wt6kzi+1h9a2Wc6tHgXGO+7 Y0YLRVKW5MBqGN2uSqBRL6fa1FljuIKXtMd+jjzGuoIW70eN9UG47DsQniNX1EUkRk6l Op1T/xlnJ9c2TSUyhQGtUEq9Ex9Xp8SO7srfG9VggsTbWDCT/89hZVK+Jq6QHtQvd22k Sq7QXYXvTLh6Lspa5+HkFt97skV4Wnh54/MftWbCxEpjzA9ncv9jWLYp6SQqeMlgvoWK kSiBXZGv/8wjfOA2Eg6nKnKGgAuN6rXdtlnP42RMqKrFkw/YnFcTC5EYMWIviKjMmEgG jyLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680923041; 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=DIvMa6yODJNeTBsR2OjDHB1GmvQgxFX82aBlXYH2wug=; b=KTnx7DQ7MbMZZCSZaH+Tl+IlrRxAJzBXoRzKBJerCB+LC5T1P3n6YXT6E5OMfuiQLX 5kEn36JCQRtK5GVFmCvAWUyHtQ41MBqu2laySYFCAF6CmsrCh6Pm4FvJ7mwvLyN9F6Ug MhEPPPc728du93IKrUwFjt3uy6qvotrGlbYIh/BzRahsrsbRR9w66lO1dNueNUjkVSxR 3B5NyqGXQ3Cdgc/A5T1kaFnLNrKXOKdA3B5AjBTUNzGFEjKT6eNfF4yDffehDBMOuuaA ZjKFVOd6SsJjzhsv6meyrFYAna3YSsSCG0GWwN+Sn1iehXpfT7uQfhdM1tDGYVquxIkr Yblw== X-Gm-Message-State: AAQBX9fCgsqByFNrgsrO3EImiZjF0OB246gL81nOdK3x6ECJcTneN9O5 Y7NewOdC/g+H8iBaXjy4hFL7XW8EA21ciQmYe9M= X-Received: by 2002:a62:6443:0:b0:625:ce21:3b1b with SMTP id y64-20020a626443000000b00625ce213b1bmr3852802pfb.3.1680923041640; Fri, 07 Apr 2023 20:04:01 -0700 (PDT) Received: from stoup.. ([2602:ae:1541:f901:8bb4:5a9d:7ab7:b4b8]) by smtp.gmail.com with ESMTPSA id c12-20020aa78e0c000000b0062b5a55835dsm3687025pfr.213.2023.04.07.20.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 20:04:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 01/12] tcg/mips: Move TCG_AREG0 to S8 Date: Fri, 7 Apr 2023 20:03:48 -0700 Message-Id: <20230408030359.3368868-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230408030359.3368868-1-richard.henderson@linaro.org> References: <20230408030359.3368868-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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 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 68b11e4d48..8cdc803523 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 34908c799a..c24b780818 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -2493,7 +2493,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, @@ -2501,7 +2501,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 */ };