From patchwork Tue Jun 1 15:00:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 451396 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1870871jao; Tue, 1 Jun 2021 08:08:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy22J9i136CFu+zTU3Bt5c8gizBDCBDGXGEiIEzKma+d5TztwFg2QZanBXXjQrO9i30IS3U X-Received: by 2002:a7b:cdf0:: with SMTP id p16mr379219wmj.27.1622560122219; Tue, 01 Jun 2021 08:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622560122; cv=none; d=google.com; s=arc-20160816; b=AWnzjS9BSPRX8NdKpULCDAzVFJBuwNRvsnaLrO1n6Gid2FtBGV+h2l1lN4vG4+rfN8 /xXv+hWn/HFaUUb1ObfdQTNE3qsLw/Fb6QUTR4U0m3cnPzjp47nXR43oJsW8eVk4HeuF YwZiEtN1uIwnmKGT/BhCHTMgFRw5AlClECII4E716c9IpgPWY5icOshJ6HISaNxhOjvv ZDYZCDrpYhuO9xv7wL/6+MnVulDoXWSMuOCdg7+d4kdqww46x7GGIFd9MDW0HoSz+29q U12sdYykRnCKJHeEDV+rD11X75GWYRNWrEdHOEm/pPaHmkO9PNR+xf798eJCf7oATV2s dXdg== 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=ZAx9TvSQNM3qsvLQFMHbzkqCPVAz7mL5WVLxntL8Zaw=; b=vAbhLYRRvs27Zd4FiZsWr3vuYHbGlSvlaj9w9r0mW3lPuiHtoLl9N233ROCxzaNtjR 8WuSqAkLYjjKyEVJoZWJ/1+/67m9h6ChkVEzaEtEYpBl0nkZFPiHJNRiozgrNo1hTrU4 Tm2y47Heg9F7OQ/Mqet4M/ev3XoVaZmVmUeRxwvSzBM/j/CxMm6EJ9tkovzIKzm5Xj15 n2IlqdWkiOAfNM1xdoISB2jAukmu6XzmVGAXIbkDKTDsU39+t/Mw1yy7briO17fJqm27 0HT06pYN1R57JjdiJbIdRmt2jD2f8JlTT90rMD/oWBVNQscfjCBtyQpLscAs5l1O/eAI p/0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lhAQhFUV; 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 m2si15712543ejk.237.2021.06.01.08.08.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Jun 2021 08:08:42 -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=lhAQhFUV; 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]:52394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo60X-0004vT-3v for patch@linaro.org; Tue, 01 Jun 2021 11:08:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5th-0002Px-87 for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:39 -0400 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:40639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo5tW-0002bq-EF for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:31 -0400 Received: by mail-io1-xd29.google.com with SMTP id e17so15640667iol.7 for ; Tue, 01 Jun 2021 08:01:25 -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=ZAx9TvSQNM3qsvLQFMHbzkqCPVAz7mL5WVLxntL8Zaw=; b=lhAQhFUVunzF9XBHKpt+9OR5KGkWGoswO2W3E2C2OpPWHv/UUhKUw+UnQwzSt5cCaq +Kka9Dt/ZW711LZVaGw2MwKZjFfh8wTPgf+IWYuc0rCC/D1dVAzU8dWkOej8n/yOG8Yd 1BtmOzwg2nrCLTFrllN1g1/uq2MUkx4oliB7YDpviIb+9NaJuHY2ccA4BIoXjwibCjBb OcBktCWhGxUmpedOpSME38BDM/GXN7UuiI1bcWpYl1HPaC8LKPJIFIqBaWY5zzY+M7O2 qLRTG2jNIceJVfjwyxO5IXrFjV4iGf9WKFm2tYelz+gu7AD4mANHN4lfnCjQmN52rA0q 7PpQ== 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=ZAx9TvSQNM3qsvLQFMHbzkqCPVAz7mL5WVLxntL8Zaw=; b=J4ml9wM1iXmFKDhL7PpJhDRG7P2zJ/mRXCJ+CUyDcSh4RQgwQwia9r77xP9Oo+8Ajg fr6cjQhqeX5r1WZfr5IFkR2Ll1R/AB23P7HQrUSh+XUo+9CboEvV+AbYlcPGVhll2+nJ IgDKd3Bx8fVAjHmpTnYylh8J9RUwCjdfAq55evku4PMgOneg6GxOQm715Ph+0lHnLPfz me4ETrKkAoohF2XatbPvHgc2Y6apqNYY9iOBVChPsCyo0IQeTVqtDXgD5Jce1dsKA7E0 UBcRA3IH2aIH7LllXptTbLfSt312/td6qJFeiLS3yMFV5MsBWJqeKVrX0ShjUwmhWrBf wDkw== X-Gm-Message-State: AOAM530mNMky4dGJBVqlOs8A2MaQnCaR0/+SxH7KbPxgmixZ1G0MWFfy 9nfZL1rsFHcm9QDndNWDPctiMQ3XTFPHJQhQ X-Received: by 2002:a5d:8485:: with SMTP id t5mr21611351iom.89.1622559685216; Tue, 01 Jun 2021 08:01:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:01:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 12/27] tcg/tci: Reserve r13 for a temporary Date: Tue, 1 Jun 2021 08:00:51 -0700 Message-Id: <20210601150106.12761-13-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::d29; envelope-from=richard.henderson@linaro.org; helo=mail-io1-xd29.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" We're about to adjust the offset range on host memory ops, and the format of branches. Both will require a temporary. Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.h | 1 + tcg/tci/tcg-target.c.inc | 1 + 2 files changed, 2 insertions(+) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index 4df10e2e83..1558a6e44e 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -155,6 +155,7 @@ typedef enum { TCG_REG_R14, TCG_REG_R15, + TCG_REG_TMP = TCG_REG_R13, TCG_AREG0 = TCG_REG_R14, TCG_REG_CALL_STACK = TCG_REG_R15, } TCGReg; diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 9ab7916300..d80fec3488 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -822,6 +822,7 @@ static void tcg_target_init(TCGContext *s) MAKE_64BIT_MASK(TCG_REG_R0, 64 / TCG_TARGET_REG_BITS); s->reserved_regs = 0; + tcg_regset_set_reg(s->reserved_regs, TCG_REG_TMP); tcg_regset_set_reg(s->reserved_regs, TCG_REG_CALL_STACK); /* The call arguments come first, followed by the temp storage. */