From nobody Sun Nov 9 23:46:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.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 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552178201619823.433240521517; Sat, 9 Mar 2019 16:36:41 -0800 (PST) Received: from localhost ([127.0.0.1]:38093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2mSD-0004cm-Br for importer@patchew.org; Sat, 09 Mar 2019 19:36:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2mQH-0003Mh-Rt for qemu-devel@nongnu.org; Sat, 09 Mar 2019 19:34:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2mQH-0001F4-4l for qemu-devel@nongnu.org; Sat, 09 Mar 2019 19:34:37 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:51433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2mQG-0001DX-U4 for qemu-devel@nongnu.org; Sat, 09 Mar 2019 19:34:37 -0500 Received: by mail-wm1-x341.google.com with SMTP id n19so1050877wmi.1 for ; Sat, 09 Mar 2019 16:34:36 -0800 (PST) Received: from x1.local (43.red-88-25-181.staticip.rima-tde.net. [88.25.181.43]) by smtp.gmail.com with ESMTPSA id 12sm29164462wme.25.2019.03.09.16.34.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Mar 2019 16:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9ppiZydzuJZfRra/Eep6XgXkNNmKKSwsF0Yu2yJlfH0=; b=YjpAsmaC3NwthpGKzxoa+IbR6Gc2Yr+Dx0ubmxYK1qR4ipY45GMmO8hiHsSS5ibSxc awRF1wNBQt6VulGiHIQgt45jy5Jqwo+CYeAyN4R7kkQh6v1ld1UfOKhYKplp8S5ArWId pPpO5H17vta88Xv1ZKwI0FY6vTCyytqvJzM6ZCAwQhhgL0kJV12p2yyn0/Sz7zzQT6S0 iFHOCztLAv677OZPISyCmkMsvOJWsK52FrAT1Q6INy1iCRYWsAGzIqHeMz8ysu/OhVV/ tFt9wG35IM8movetluwbv/TVorMCck9BdB+P1Sf48KJVFMqNKSnKT8fJYwH9bi7GEzj5 VH3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=9ppiZydzuJZfRra/Eep6XgXkNNmKKSwsF0Yu2yJlfH0=; b=dzuyh8mMNAlwBAzNlzutPwdSN/SGA70EKPzu6nKFe7HHTNnFSi88N5Cf/fbCrJBRnF AXBJ81Rz+2EWqycQlfgNXoJPdU485gVmG+77nopy31/uiX67ytNVTad0h7PSlI8qqTUi hon/k6fVscl+wpKrJj/l0/8ZXi8JcCTlSuBAqwv8rJ2VD0GaXA2CJRvFLjyp3tfzsMnx 7RFIX7e3HM+3C6Gr1qVeV50m32PSdbWb7Qp0Z8zEV60rqH/VcGHa+ZKCXpWZp3nKpVi8 QohFNHDHEHldX3m6QDfwEmWAzdh4/Hen4zzobS+zTyK75XUQ0Ju8tVMBsvzsnN0NOlfp XybQ== X-Gm-Message-State: APjAAAVe+4KF/nt/CxyxzOGDz1eat4y1xedRovqpTeuHyZfjNKOM5EZ8 AY7sdc8iPmIbr0PPyy2GPkM= X-Google-Smtp-Source: APXvYqw462AesrjY4Yj6JuU6AMGpnFhCKsU6WerNtmcv5xGr7uzHa+Ek9xHAdcxA5aeJ0IFMe625Rg== X-Received: by 2002:a1c:480a:: with SMTP id v10mr12367391wma.57.1552178075853; Sat, 09 Mar 2019 16:34:35 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier , Richard Henderson Date: Sun, 10 Mar 2019 01:34:26 +0100 Message-Id: <20190310003428.11723-5-f4bug@amsat.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190310003428.11723-1-f4bug@amsat.org> References: <20190310003428.11723-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH 4/6] target/m68k: Optimize get_sr() using deposit_i32() 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: qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Doing so we free one tcg_temp. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/m68k/translate.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index ea95d55a11..f43ac07b7f 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -2217,15 +2217,11 @@ static TCGv gen_get_ccr(DisasContext *s) =20 static TCGv gen_get_sr(DisasContext *s) { - TCGv ccr; - TCGv sr; + TCGv dest; =20 - ccr =3D gen_get_ccr(s); - sr =3D tcg_temp_new(); - tcg_gen_andi_i32(sr, QREG_SR, 0xffe0); - tcg_gen_or_i32(sr, sr, ccr); - tcg_temp_free(ccr); - return sr; + dest =3D gen_get_ccr(s); + tcg_gen_deposit_i32(dest, dest, QREG_SR, 5, 11); + return dest; } =20 static void gen_set_sr_im(DisasContext *s, uint16_t val, int ccr_only) --=20 2.19.1