From patchwork Sun May 2 23:57:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 430540 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2394578jao; Sun, 2 May 2021 17:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUvyJ+s+a23LJQ4T8M6f9twZv5PvneGC5k79TjaURnLVgTarWB+xZUAVplJkADG9fpYL0Y X-Received: by 2002:ab0:3733:: with SMTP id s19mr12647751uag.108.1620000487712; Sun, 02 May 2021 17:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620000487; cv=none; d=google.com; s=arc-20160816; b=m89uUSAE3eggR4oH3xUwXQpEFSYCEL0k07Qs6y3v23yCDCAV7q+9P4Dpme6ejc0RRF M3s936Zw+aplEOcTiO9B6wRzmWvaCrGxdya4yNxJqaiiFnAVrM6lGngo2Fft9Y5JFQAx MbnhcjFmvSzftQHE4MuGtDucAMsGiT4mWD7ch/hBs7TBub4YQV/DEOGPxsqGJ15Yujff 9Rx9s4tYymF4ze/GoZsE8KEVvQAbyzIYIFRhjnfYwiuzaLu0ANNFYUufOJxlX/4RB7sR b2jdlOwCXOKUiozII/BwWuXG+J/DrrQECebpfxmUay6gDTQQDMY6xIRJuVkwKC0N70eZ lnEA== 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:to:from :dkim-signature; bh=G/AvJFgKbey0zty4ZtRCdz1rAzrj3jVjanH+IuE7Hdw=; b=h4aB0QJ9eCG5pd0a/5ael5vjtlPud7bVrl2wqJZGWM3kxyeBgd1PEI+/GFilCls7J4 4hX+Or4fnFII/gXufS5vWZZYJP/mImRUDNzhzKTQeiQEixljbTwiYseu3EfC+tU75DQ9 1PldSQmqhyrlpzareZDFtqXDyb98NvxbnCBUivxVtDgIEAI5b1ftiqY1hlI0O/4wjy/h SA3CuAgbbK/pEQj2M/9Bg4YU9Uj7fju9ZfI5Y5j0aqnWRkGpAddZ4D808oyiqB8XhzTc 2OtTBmbxGZVaSAjwB+RtTF/dACNQm+iypiqrnD0WKw5Gnrs26bTYiEflWPLcjLfPQx+S 8opg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SZVLHl0J; 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 d2si4622168vsk.127.2021.05.02.17.08.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 May 2021 17:08:07 -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=SZVLHl0J; 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]:56574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldM87-00046b-2w for patch@linaro.org; Sun, 02 May 2021 20:08:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldLy3-0007hP-9Q for qemu-devel@nongnu.org; Sun, 02 May 2021 19:57:43 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:51750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldLxz-0000bk-H2 for qemu-devel@nongnu.org; Sun, 02 May 2021 19:57:43 -0400 Received: by mail-pj1-x1036.google.com with SMTP id lp4so654008pjb.1 for ; Sun, 02 May 2021 16:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=G/AvJFgKbey0zty4ZtRCdz1rAzrj3jVjanH+IuE7Hdw=; b=SZVLHl0J8RP59XVISabYPA/LHpHSJC9Bqp1NxXm8U9FM+uyDoT4OuS3J7X6k8ShnNJ 4a984heEPoj4A95uemwTQ5lXymHCCss7Lu4PWVwnvJ+3YyZeCHAJbj6EfnXxxFjF0UXl NlJmhMhQE6P6j2VAOvfmWZoJqM25zorXtkW+876c7iw1qZJbZK8lfTzmZHkElXM466DE HhoKg7KymeZIIMgDLbE7cHISTfSPb3QFIfagYRguxmtDfMmElgXsOlzao7s8tXyVzzI6 XO1DzmzC/fry7NJqSql7vSYmSmUGptkEr6BsFekg3/8AB0A/xu0Sg0KaBng5ij1NpfCc 2vgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G/AvJFgKbey0zty4ZtRCdz1rAzrj3jVjanH+IuE7Hdw=; b=HPN2NMVX/DXR7RTR2l7UaX5rXWg6XZa4MuxFPuta/KkvKHE+IOi2m0hK2IHWc+A/24 I6l3C719DEz/IwQ9+qIj3Wf69N3qvUPHm7CAotOj2PKKbKh564K3YS2eynnRnIROLWmP vZ8JIbHsjgJm2P9JSOpXdNQ06dViKHx6AS6lcQx+c11oBbznQBBRQs4yixrhgPQlA0bd rBJv85UQommeuRIwE7/BMQEazt+zlFaoyuF67FV4N40DP0oOSIreeVrfECtfj/XcB0Dp kfdtipwwPXmoY3T3jxtaKJBx8l/pzSBcbspR4rgL5U7XJbhVrnmy6oPWb/+SPOaUnKde VEhQ== X-Gm-Message-State: AOAM5325ztucwRbBwc70yvB/xwS0sQnH3YKdhCPVib8KRn9uFiTtJePl HpLQ6+XynVtGxP4KNhxSfF9q4aE4Br+WLg== X-Received: by 2002:a17:90a:a389:: with SMTP id x9mr27464437pjp.232.1619999858067; Sun, 02 May 2021 16:57:38 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id t184sm8098054pgt.32.2021.05.02.16.57.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 16:57:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v6 12/26] tcg/tci: Reserve r13 for a temporary Date: Sun, 2 May 2021 16:57:13 -0700 Message-Id: <20210502235727.1979457-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502235727.1979457-1-richard.henderson@linaro.org> References: <20210502235727.1979457-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1036.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: , 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 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. */