From patchwork Tue Jun 1 15:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 451402 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1874106jao; Tue, 1 Jun 2021 08:11:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycSSGrKS95L7TFbQuRW62oOtuZ7qt0r/lrc8ec19dm9pq1GSSIxaf5ZOXzPfygl3/CeE5y X-Received: by 2002:a17:906:3a05:: with SMTP id z5mr8992160eje.505.1622560305595; Tue, 01 Jun 2021 08:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622560305; cv=none; d=google.com; s=arc-20160816; b=ZqqjBAlyVzqQdTp0oJmq/7RXZNcB+As0ilnH/r9yyy/t3uKaYlSUoYvL4nORB5+J3L 8Sil9lUGCy/Uo6UlC9QE/IWNgvzhyfZb1RI2JGwKELCF88JWfYTd6RMC8km4U2WE1iaw 3nwi/EGAGW5Q7K+skGtFKLmNzynMuDwUO9o3b1+GGtHN79WkiWrt/O2vARsR5zUiL+wh OKIPXOCXBCe5xMd/umFkv04McPssC6ii2NsLD40TTUJ/y0PIMzZIQw4T6Kd+iduiO+EA acBhegeAQNOWY11Rns08qh8CQrQC7fBnrTne1YCGcVymSADkjqEbf51cvgzts7JwIdfi 0Hqw== 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=HVx2cEUQ9ZpP9PZYmFmM1rD3PJzpFBQDc6WvDYs8Q98=; b=fWEcXo/nOjxjO6skkj7OhmPXZ7s3N27fL+eGFYz+Ji/+sOPsKiR2PTzFuCc9LMqTtO chuibGRc8wusSzJVqo0AoOgxymetSra8IQXnb81z5ohNTBtjgLIEa49JxsQOwUSrrk6W fJpQ7S02l2V9hb7a3OgyvCvMHFQOc9bSLPKPmprZD0m/vtjgRmQTaqkCrdZATa9yRJty 4SmJZos5mF+rETqx37T298DCeMkxtF8HSz3Lo0CQbyB3PPwG0rmdTJ3aH127QRR2Rqne 3zcHHp2wFYgAp+la16IoO3KnZgEXRQWbWQixVLI9O7RIlUyuykdvDv18h+43Mg7h014f RnJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WL1U+923; 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 bg8si18223187ejb.592.2021.06.01.08.11.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Jun 2021 08:11:45 -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=WL1U+923; 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]:34752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo63U-00042T-Jp for patch@linaro.org; Tue, 01 Jun 2021 11:11:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5tV-0002Nw-On for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:29 -0400 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:38454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo5tU-0002ae-2V for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:25 -0400 Received: by mail-io1-xd2c.google.com with SMTP id b25so15646339iot.5 for ; Tue, 01 Jun 2021 08:01:23 -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=HVx2cEUQ9ZpP9PZYmFmM1rD3PJzpFBQDc6WvDYs8Q98=; b=WL1U+923iSQ44NktD0hTfa56bhyXspiwtXKJo5bJKKV8RqT5mw1qt5XRLPIJ9i/1Bs G7pHtNDTDC6TaHSNptGF4wAzI/F8/JhkbqT3uNZUqcT1cIiif6Ekmn303E88tpSDOAux ywSWyAyjcjVi7BCsMFFXNl22NZn7pG2MladOGn9S9H6nMyxN+zAySNRW3wG08UD1FX2H qika+bqXNEMN/UL+NZRaYoGOtioC6mLl1aSfwGJm2dfOw3rpd7ZFXcPfo9/NZ1GlYS4b /lnMZTHPAw1Xwoq8Kle25D+VMUAtRENKD5VK5Gbb+qinO0EYsctdSNFaiz1SS9DmL1eA nFZw== 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=HVx2cEUQ9ZpP9PZYmFmM1rD3PJzpFBQDc6WvDYs8Q98=; b=h4vRu6Vz85CO7FDIGi/7vdEZKuolhu1FtI+/FBCZudl3+S3wSZS1MMh/DukUapTcP1 bhGuVqOg+otECWbBzrjHNKcsKEpUslo1zUlMzVXtN3hcH26oEIVfRC5yaKxyYFUbvG2d 2ZVyqXxvAWiNL4niIHR1IIjkDzg2tW3Y3SfHvYzeQ9Tv8Kcmy30QrkNPhVcMRYn9C1gy rtbuCnHR51cVs/+Q4X8WOzHf2uISpXmbR4hZyy2uhqUsVhvn+eAM7eOEWwN7zi/Tyc76 CGgNgdJmsTvpTLrw6dKFmM1pubaQOffEm2xYPvo0BKAC53KCCDxc88XkTIMPvykO3NRv J0sA== X-Gm-Message-State: AOAM530y8cCcQsWbAXwECMeIKZLxAFi+eWCRJBxQRsU+6lX77vpvJe/P 51XMkP6UCwASvr9p2YPc/h0J9mZe8xaPQOLS X-Received: by 2002:a5d:9a97:: with SMTP id c23mr21721510iom.38.1622559683066; Tue, 01 Jun 2021 08:01:23 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:806c:3e8a:9cf0:b3be:5e07:b99f]) by smtp.gmail.com with ESMTPSA id f8sm4109909ilj.37.2021.06.01.08.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:01:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 10/27] tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order Date: Tue, 1 Jun 2021 08:00:49 -0700 Message-Id: <20210601150106.12761-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210601150106.12761-1-richard.henderson@linaro.org> References: <20210601150106.12761-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=richard.henderson@linaro.org; helo=mail-io1-xd2c.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: =?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 fb7c927fdf..288e945465 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