From patchwork Sat Jun 19 18:14:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 463903 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp1049994jao; Sat, 19 Jun 2021 11:24:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFwzDVordNeUirZyNN+WcHlB8VV9Yq2W967n629R6EoG6DSenPimPue1jG4WAdnrZ48TJ0 X-Received: by 2002:a05:622a:1a96:: with SMTP id s22mr15608010qtc.229.1624127055845; Sat, 19 Jun 2021 11:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624127055; cv=none; d=google.com; s=arc-20160816; b=WsPCuNO795Jj9l9JUzNih782u7ip6clG4DYI4P4A3fR6Sj231z573Z9TplCtawC9SL G0KZwHemOpx1ms8S4e4YQ/VM0IVE7xIG5J2N3qXdgDDslWcmNw8QmVucLOdMfxwVYaZN Iq7kiafWYynREbODxdC4D2whPE7g3UZGO90LTgxmq55sWOKoKGXuC7cCBqg2GPwZ72id GIHi/k82z07Tl8pl8hlgUYafPKyHywmzsbgKejF3YxJg3piFYPcuu80NTn0FCcU/kQA6 MTYBcWc4ggy+4Nibu05JGT8slC/GDNQOgIS6tdjr40klM+lJDnzoVanwZmDnF4biuzuq JJ8Q== 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=6t5cjIM/Jta9nl2/Scc7LjVmb2HvXKv6yCUdQdTGseM=; b=YVvEsfZ0ZQUbkxoE1fif4+c/OaojX+SL1fej1OIIGlwJ6A+6H88NCtaH2GynmPOEbr fnWHdib+MJi0vePCr0DU5muf7Qq+GEqVn5bHLUsJok0Yw9dqdZgyrYg97p7opoRUoSDm WRwMycjciAiwPMaiRozSkPCvyz2sdabHy4V5C4Qc/XLYACP4BmDOE7Bwgt4ZvFeyfeji Z7+DIcEii3cKtr+ASfiKVlA1iGPGYc2AejGACePKEIws1zBuUtGl0OPuQr//FTgLgikh MOCqOYjf0ZfGZ6gTNNjnH3IGifAq0gQF0iFGvXUgh5st7To4H5lUiGf8OO/5njXoLFu7 ixQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddS4CFsl; 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 x15si7179083qkn.310.2021.06.19.11.24.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 11:24:15 -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=ddS4CFsl; 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]:57768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lufdf-0003K2-64 for patch@linaro.org; Sat, 19 Jun 2021 14:24:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufUj-0000j9-QB for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:15:02 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:51712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lufUi-0002GK-6a for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:15:01 -0400 Received: by mail-pj1-x102d.google.com with SMTP id k5so7550071pjj.1 for ; Sat, 19 Jun 2021 11:14:59 -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 :mime-version:content-transfer-encoding; bh=6t5cjIM/Jta9nl2/Scc7LjVmb2HvXKv6yCUdQdTGseM=; b=ddS4CFsly/DYmYNV+uZx6dgnVKuB1yIG89i0fXhpLAdCqMXGEuzJNx7WoyP2aliF57 uH+mWB4tfXRCRZFNhaOBECV7EljrxxNaOdqo1O5cvGV/BoGGs6PgEonfSZkzx25FjVpF o9v6IY1mc2B6zTDKzK1sbdsMqS7SIKvR88dT+y6FL77A8O4mhQrIoB0zkZF7ETfnUnqL Y+j2TGAMGafKIZumerdHD59g8ABh7XdQu6kw+Exndgs5v/b8cc5HpE3in8ZEjhO9MEca bTzXUAMDi8q9jOgoscDbMUtO9i48kNu/btpNTtfkXIchhOzVU9f/eL7pwHmNRzfPERo2 NiRw== 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:mime-version:content-transfer-encoding; bh=6t5cjIM/Jta9nl2/Scc7LjVmb2HvXKv6yCUdQdTGseM=; b=MCNbxyd83NHeCJ+WiF8/AWYW5ivFCct/oHMKeE0EZwjgL1u+PkCugTcO2QtoLofat7 f21jk1lIxLVhLwrDzfQTrBB7hJG/Yr4G18Xt6f1NzVG1W/Ls3Fo/5AOGLt9cDNY2BGxh iDFD/sonznhLxXFiGOW5YRlwhJeG5R5sYS5N+VP9i/zIDZYDTCreFieTizb5IscK6lwT K5fzOE6ffVU9uCSqaw0OjxpdEBupKEOFsdwC8eydvtktKc7qiYH5u7aCgDEm7abODf2C v/2gdA1PVy5GcqN876hn+rDY4WKJBv3LQzF4vJpOxZgmTBQ5id8jFsTIMJh/TFAg4Icq IgtA== X-Gm-Message-State: AOAM531GXsrnp0j6XZKXiC8wMxtgUODlva53neC/YzJWHUVUNIZVDkVL zOUSUKwEK90ge65Vuf+3Zq7R3OcuaoN/LA== X-Received: by 2002:a17:90a:3d47:: with SMTP id o7mr28864733pjf.68.1624126499110; Sat, 19 Jun 2021 11:14:59 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id k35sm12059113pgi.21.2021.06.19.11.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 11:14:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 10/33] tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order Date: Sat, 19 Jun 2021 11:14:29 -0700 Message-Id: <20210619181452.877683-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210619181452.877683-1-richard.henderson@linaro.org> References: <20210619181452.877683-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As the only call-clobbered regs for TCI, these should receive the least priority. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 8f3f9ef7d3..d54c01b9de 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -170,8 +170,6 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op) } static const int tcg_target_reg_alloc_order[] = { - TCG_REG_R0, - TCG_REG_R1, TCG_REG_R2, TCG_REG_R3, TCG_REG_R4, @@ -186,6 +184,8 @@ static const int tcg_target_reg_alloc_order[] = { TCG_REG_R13, TCG_REG_R14, TCG_REG_R15, + TCG_REG_R1, + TCG_REG_R0, }; #if MAX_OPC_PARAM_IARGS != 6