From nobody Fri Dec 19 20:11:59 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543383850224767.7328167239056; Tue, 27 Nov 2018 21:44:10 -0800 (PST) Received: from localhost ([::1]:46051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRsdt-0000fs-0Q for importer@patchew.org; Wed, 28 Nov 2018 00:44:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRsYi-0003tC-GB for qemu-devel@nongnu.org; Wed, 28 Nov 2018 00:38:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRsYg-0004LL-GJ for qemu-devel@nongnu.org; Wed, 28 Nov 2018 00:38:48 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:39023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRsYd-0004JT-9b for qemu-devel@nongnu.org; Wed, 28 Nov 2018 00:38:44 -0500 Received: by mail-pl1-x642.google.com with SMTP id 101so10531006pld.6 for ; Tue, 27 Nov 2018 21:38:42 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-170-180.tukw.qwest.net. [97.113.170.180]) by smtp.gmail.com with ESMTPSA id 19sm8569336pfs.108.2018.11.27.21.38.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 21:38:40 -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=vQPcVoGV0u9SuJTOPjajxaRuT7Da+0X49o+wYRuOFhM=; b=SbPOeqvao72aUCPdZlSLY+iRN25Mf00mRqdXuqxMmVDqJXQBf3XwKTkcoV5FdE+4co O+WcNOAHACrJHl6xk9eLmtMzT5d0A/YBsiOOuQoSp3XoI7+bwJtsbJ6tRxIEEH1Uns6L JKoWS7INtOdPL4CASpqggc1B6BBxdwYKDlurs= 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=vQPcVoGV0u9SuJTOPjajxaRuT7Da+0X49o+wYRuOFhM=; b=bSC5FJV/oDavgYiJ+wHDjvvGJIKKVUisOsp7YzWviWwxd3Xoxex7bpTI2J30U9lo0k rCPobyOMYJW0LswfM/lmzqAy6TXwkQ4X6s9dw2QHbasKn9wEVZmmsDPQSJHDNR4nf/fj gzZcXMvYrlSJbCUZSGFVYGzoNv6KzxJpU6+/crNFp1oUQX+Y8ZuvnE0jUE9+o7+MKr0F Ff8PsieOXht2JHTTCZqwUtRPU3TuWYJ/qxfjQgFa8JKOYgY2y68bqnlmaOcxtUWrZ1Cw 1GEwHttCQ+SCEreX4gojD02NKJjXBw9rS3ShXbYd3aM+hoPPZ3YI58EHXB7SBRDfWuM/ GGtA== X-Gm-Message-State: AA+aEWZisNsu7r79MicGRPoixu82xiNk9ylDnpOIzzKYEki2ZPg501/3 Ied2Msi/aWjnxYKot0R9wDkIE+bdYiU= X-Google-Smtp-Source: AFSGD/XMFznfF0m7tnwpo33b6AmIHRIW7SnhzBRzPHuwn0DkWM/0a8nYN4yxNw721zDvm2D82gkuPA== X-Received: by 2002:a17:902:bf49:: with SMTP id u9mr35168848pls.4.1543383521392; Tue, 27 Nov 2018 21:38:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 27 Nov 2018 21:38:26 -0800 Message-Id: <20181128053834.10861-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181128053834.10861-1-richard.henderson@linaro.org> References: <20181128053834.10861-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::642 Subject: [Qemu-devel] [PATCH 04/12] 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: cota@braap.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. 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 509e5974bd..c83ca238aa 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3099,7 +3099,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. */ @@ -3115,7 +3116,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); } @@ -3126,7 +3127,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) @@ -3150,7 +3151,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