From nobody Thu Oct 2 10:20:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1545773387703284.8204634100614; Tue, 25 Dec 2018 13:29:47 -0800 (PST) Received: from localhost ([127.0.0.1]:43381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbuGo-000315-DO for importer@patchew.org; Tue, 25 Dec 2018 16:29:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbtnd-0007m2-Ap for qemu-devel@nongnu.org; Tue, 25 Dec 2018 15:59:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbtna-0001Ui-72 for qemu-devel@nongnu.org; Tue, 25 Dec 2018 15:59:37 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:38009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbtna-0001Tv-1U for qemu-devel@nongnu.org; Tue, 25 Dec 2018 15:59:34 -0500 Received: by mail-pl1-x629.google.com with SMTP id e5so6810979plb.5 for ; Tue, 25 Dec 2018 12:59:33 -0800 (PST) Received: from cloudburst.home (c211-28-135-144.sunsh3.vic.optusnet.com.au. [211.28.135.144]) by smtp.gmail.com with ESMTPSA id t21sm48501628pgg.24.2018.12.25.12.59.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Dec 2018 12:59:32 -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; bh=mb5rlCOOemNJYBl2hLY0FC1HtZztFvuXbqXXbgy8hxI=; b=eKpIoesKQ/IMbqQoUUvU8b9BcW9qXwy0kkAjcVjs4+tP9QVJqfWDtSmuYXw671tY4w 5mEyecW3DvJKGCx5UXpy2TRPzuC9bRWomJSvuW4LJ+oITDymgy/NnmdArPVo7/GWOtfd O8jg0AdG0Iwv79nvhQ4m2srMo0bYKWatIHp4A= 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; bh=mb5rlCOOemNJYBl2hLY0FC1HtZztFvuXbqXXbgy8hxI=; b=GVo/emQ2Y4fW+J7WwmnRWQ9lf2aEk0vWvQuLLoXRPqF2Z8hjQloK/vINwUb98ylryI xh6wmbbvTagepdpKMazSQE9TRag+8+oJpnDGE1/1FGwEGZFQNyYKNvmrvkIHJmunzxmC GV+dY/FZ48XUV3B0rCiKkM2mimjXnpZm55hk+hXUQ/hIZgAtnRItAYicbb6mTwpi376S Xt1krdWSRU1EJn61vuEYbiGRPfZEGMPXnreMmwwHaM5u9f0LYxRmvg1hDgmtH0OTgcn2 QfOQ36xHoq731GG7cAiCWNTeOz0LpvaTwrHUAsZrU4MTeQGkoVF9jUcGQbA0UteyitDD YaKg== X-Gm-Message-State: AJcUukdY7Kw+o+CyqK4IRB2ZUdK2WV78gJjj9nkAN3RDe5P8UnWtFVg6 ANXq6YcHorrcqHLW9BVPmvRvq2rncjs= X-Google-Smtp-Source: ALg8bN5n08IRsmYsEC5g6vsELAJ81p96ICqzIgGFmM2r+l/VCmIOCoXyJ3D1J/iTrtk/YChi4VLd+Q== X-Received: by 2002:a17:902:584:: with SMTP id f4mr17937425plf.28.1545771572782; Tue, 25 Dec 2018 12:59:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 26 Dec 2018 07:55:20 +1100 Message-Id: <20181225205529.10874-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181225205529.10874-1-richard.henderson@linaro.org> References: <20181225205529.10874-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::629 Subject: [Qemu-devel] [PULL 33/42] tcg: Add preferred_reg argument to tcg_reg_alloc_do_movi X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Pass this through to temp_sync. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index fe060c481a..7844158a8a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3077,7 +3077,8 @@ static void tcg_reg_alloc_bb_end(TCGContext *s, TCGRe= gSet allocated_regs) } =20 static void tcg_reg_alloc_do_movi(TCGContext *s, TCGTemp *ots, - tcg_target_ulong val, TCGLifeData arg_li= fe) + tcg_target_ulong val, TCGLifeData arg_li= fe, + TCGRegSet preferred_regs) { if (ots->fixed_reg) { /* For fixed registers, we do not do any constant propagation. */ @@ -3093,7 +3094,7 @@ static void tcg_reg_alloc_do_movi(TCGContext *s, TCGT= emp *ots, ots->val =3D val; ots->mem_coherent =3D 0; if (NEED_SYNC_ARG(0)) { - temp_sync(s, ots, s->reserved_regs, 0, IS_DEAD_ARG(0)); + temp_sync(s, ots, s->reserved_regs, preferred_regs, IS_DEAD_ARG(0)= ); } else if (IS_DEAD_ARG(0)) { temp_dead(s, ots); } @@ -3104,7 +3105,7 @@ static void tcg_reg_alloc_movi(TCGContext *s, const T= CGOp *op) TCGTemp *ots =3D arg_temp(op->args[0]); tcg_target_ulong val =3D op->args[1]; =20 - tcg_reg_alloc_do_movi(s, ots, val, op->life); + tcg_reg_alloc_do_movi(s, ots, val, op->life, 0); } =20 static void tcg_reg_alloc_mov(TCGContext *s, const TCGOp *op) @@ -3128,7 +3129,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TC= GOp *op) if (IS_DEAD_ARG(1)) { temp_dead(s, ts); } - tcg_reg_alloc_do_movi(s, ots, val, arg_life); + tcg_reg_alloc_do_movi(s, ots, val, arg_life, 0); return; } =20 --=20 2.17.2