From patchwork Wed Feb 17 20:20:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 383904 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3138728jao; Wed, 17 Feb 2021 13:12:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnD7YdI+XhEBFRCzfexFUtcdht8+d/RwABYvr665nAxmCEBroSA67taKllWcPM2fwqrzbn X-Received: by 2002:a5b:488:: with SMTP id n8mr2129618ybp.224.1613596363975; Wed, 17 Feb 2021 13:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613596363; cv=none; d=google.com; s=arc-20160816; b=gLv7fNPtiy3gsIqxqM+lDdRXF+abb0pu0Wf5IgkmmqckMlFrUBRFWjghuza1jevfmK RvCKLbItXsoLoq+EAS+PdxVaBnyqQX9INijGpMrmo+O17mYPJS63cC9frfz892nxGCHE 82G8YWeVWkHvfH/dNktRCp50F9OJTJwcaZZRHKcfrrHeGWTYlxCVahT5nF+d++04HUwm 1UbAJuQp685ul3TKbU1onP+YDCnpKuCQssQ6FQqbjZLZBb+ZIb6Ed34T45yBY2oKkQMC QQiuhB7z1pI3PGfL/ZKqhFJkZeLH9c591fIqUGx1Rn1sW0ZpaQGeRc+k1Xxg09wl0ul8 aGPw== 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=j84CVB2/9NSVvHC05jyj/ExvjNOevKnlsYLw94URCgw=; b=0rTtwBG02ZUIBjIPCnUqGAjcCkOj8huzEELXORVlLZXHY5O0gZRivRcfVasdcfSuDE iSwePSupeuQLYXJHlKDhfQjKZ5320cMwoIhHCidGMErPW37xJNILHyRr96bx6Wag27H5 tmmyjk/TevJHiY2iA0VLHK5aiTRC3JyELte1/NL305Ct+UoiTA0kuhhlxnYC5AZu30hA ZobfnE6/laVAD8ECymaFhyZTTQ+CbyyVmowvF0vNSrxDzjCVo+1KDf5jX4ENTlhCKI2V FhpzuRZ2uPQPn7GKquLZOqshGs64YbGkHGCkym2VKfhXkAn2cI2UyYCBRDGxv6J0SGvg 5Pgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vEpWI1fy; 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 v3si3065938ybl.19.2021.02.17.13.12.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 13:12: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=vEpWI1fy; 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]:54034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCU7n-0007pY-Fd for patch@linaro.org; Wed, 17 Feb 2021 16:12:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCTMp-0001rf-Q3 for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:24:12 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:45782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCTMn-0007ir-H5 for qemu-devel@nongnu.org; Wed, 17 Feb 2021 15:24:11 -0500 Received: by mail-pl1-x62e.google.com with SMTP id b8so8024653plh.12 for ; Wed, 17 Feb 2021 12:24:09 -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=j84CVB2/9NSVvHC05jyj/ExvjNOevKnlsYLw94URCgw=; b=vEpWI1fy0sP0JYLo83buVsTAoViHBAOeXv8X6MuaAUp/MFUDs9QO92JNZ7qruRFI1q WWqD3X/i02OBTADliHCrl/bHQyWPSz9PCpuVOlVY30/rp9e5y8tjr2jEsfSe6Y86qn0s +jUG4wNpKfF0rbOyuj8fxgKe//8hUIsFhg6T4AY0JZJUWjoU/f4BFPvOoFBcFdUvnv4S LcbfR0T+PfJ1XFxXH4AbWL1Mp6L4GnqLG/7oBauCpEPquLCe07r99um5X/Caf2RYPQUZ S1YpN2lB1H1H2C3DCXf6pbRPBnYG1fH5FcDyFVZIw+itgdt4OM128vKf+FrpmkLqS7fG uIcQ== 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=j84CVB2/9NSVvHC05jyj/ExvjNOevKnlsYLw94URCgw=; b=a36UetQt4Rl9fJIBc9BqBeeb8usBw4rsKJusks7SPs+lv+sHPSzj5DCqBDX0K8QN2R m+UakEN+aJHoP81L0ohiaBshx6zAU1Eu4qqi6lrbrxdy9Fn48H0TuOE2XLgScmRL7/vl tKxRZht+4hl5Un5MK73zj5AL7xZmp1ORewhZP1HgBfFv5FeaVsl5Hb2siqYM+0kqZDzK a+Z0SUrhOwKPfKkVY+kSQb72+J6HJjvy9J0nEzgXJlr9O02+rlICIsBAAEHPPmjS+vw4 Mwdz3Igtay3RV88WoZqGu7+lNI3lMKzkdGg7gh9ij/wYMcB0T8VmJTiD7pZHkXIc5k/Y Z+Nw== X-Gm-Message-State: AOAM532nxuIGRy2uX4ovUePEIH59ePIV7LHGDpm6rtbjrKT31YxLCgip E2hqWECihcXWKEalcx91oHfV6pXv/jgFqQ== X-Received: by 2002:a17:90a:1082:: with SMTP id c2mr524226pja.183.1613593448216; Wed, 17 Feb 2021 12:24:08 -0800 (PST) Received: from localhost.localdomain (047-051-160-125.biz.spectrum.com. [47.51.160.125]) by smtp.gmail.com with ESMTPSA id v126sm3232038pfv.163.2021.02.17.12.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:24:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 58/71] tcg/tci: Reserve r13 for a temporary Date: Wed, 17 Feb 2021 12:20:23 -0800 Message-Id: <20210217202036.1724901-59-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210217202036.1724901-1-richard.henderson@linaro.org> References: <20210217202036.1724901-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: sw@weilnetz.de, alex.bennee@linaro.org, f4bug@amsat.org 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. 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 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 c2d2bd24d7..b29e75425d 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -829,6 +829,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. */