From patchwork Wed Feb 22 23:27:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 655715 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp36606wrb; Wed, 22 Feb 2023 15:30:08 -0800 (PST) X-Google-Smtp-Source: AK7set8Yck2uo/OjCRzlGgZLFwVYpp6QFd88+0a8+8Hrn1hmGjPWUnzuNQ4MkbCwmMCPPRIqw0WT X-Received: by 2002:ac8:58c3:0:b0:3b8:4edd:3932 with SMTP id u3-20020ac858c3000000b003b84edd3932mr16643838qta.22.1677108608615; Wed, 22 Feb 2023 15:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677108608; cv=none; d=google.com; s=arc-20160816; b=n+w+9Ycr4YP/Fyl0+826kQGymo4gjvSDjkhMh5sfmJNIIo3IQM9cn+bptUhx1wcTTh ilv+ISo+6OTGAMMM0LmuDqX+buPjldn4xInrVduuXaD4hWcZaRgAUaho2qCBVcvb5p14 SLJ1waBjg9mPibKkWtF18i40GdYX7UyX1Kqe2WfaWBgxLEIyWBJtSoDgubyYxVoqdJt9 Q4Zy1NOYEb6oKPRAbZCB9+wmpjVxrHB7KW9AoJfjL+JM1UVTVh/AseTCmECB1+5Co7Ej qMCpsl2+1q6UlKfIq9Vwa1l1OBaIjSftpAQ3wnY9B9cfhAFlNompr7wrQbFP018WMw1A VI1w== 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:cc:to :from:dkim-signature; bh=ywIpknwVQ+7YXOPD8ekeMSrDTxtkruTV0ZhaLmqKonQ=; b=Emuqr+rkmSkw0WdbdiamjH1cTLK2h88ToALVkJQe9tjrOcrAmVfVcC++xSNWl3AV16 mo0RG5m/ZOTARuSpMKiu6VyM/af1pegbbL4X/tiZQ2agLsngONet8DEB3K4G3aMWPvgs zK7Pm+GtewvtpOpaq/MbDoClTQhlGelaCIX58LvXt9oxWvlZVyFqGh3YBU4qE3fOvhRL RJHHX30RzvFa5EwxeoLEQ7dWztdvimGfrInzeGckvnXOBnzLaddScQ+TPGmfladt2Gd0 H7WSf+EtCTL/ypN9ztFZvETvOZQsCAAwrGUjo1uSb/OJxf+fnE92jzG+cMqWJO7c1YWe Vnug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ddwop8Qi; 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 h22-20020a05620a245600b007390f389171si1374326qkn.503.2023.02.22.15.30.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Feb 2023 15:30:08 -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=pass header.i=@linaro.org header.s=google header.b=ddwop8Qi; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUyWo-0000yN-Di; Wed, 22 Feb 2023 18:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUyWh-0000Wi-W3 for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:57 -0500 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUyWg-0005N7-Dy for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:55 -0500 Received: by mail-pj1-x1036.google.com with SMTP id u10so10861321pjc.5 for ; Wed, 22 Feb 2023 15:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ywIpknwVQ+7YXOPD8ekeMSrDTxtkruTV0ZhaLmqKonQ=; b=ddwop8QiJM+sh69lkSFXh9OtJacegXMmvWF8/33TQqUytLlRFHF15QMoNi0jh8OVuO LcwxuRqJLldkx5EjygdX//IrSycukrwmYmHjxv7WBikueBPgcPhWpOgJ21FhSsXKw5rc YC51OtWCPK0VmMXVTQO+yYwh/F+qQWxAXXzG3xoqLrKtD8VwNHl/c8gR0k1Pcw/bwMdv BFT+cxcwO5jpqD4NhKdmjJ0Ru6HyvB570VCCjdQOmbdp6jSmSqdMCtqcncf90HoP/f3I SPI6RFvy9M1VP2TIvDeBqOcfG7Ptu7WiE/p/N9iHSM0Ux9e4bQ4qeihrrsQGsz6Ctukt Mz1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ywIpknwVQ+7YXOPD8ekeMSrDTxtkruTV0ZhaLmqKonQ=; b=h2oyOLmn/v1w3IsCRHwvzNxyUhikXKNCDNltffaQvihNO9CrB+oo5bo1EyKWs6wmoM 3P088i05pjy/kNSvYy5n6VPBr6LwnyUIJXdl15DwPyG0lwJU/DPIrujY2wXdPeCMa/Ff ZcGS9ShohLjXNuaaSVKjRUS5V7ogpa9RyZOKxKzaDpC9zqGa3vv0EScgE8YxMRmbfyiu V4U+tYiEeQ4gRcVbTPjrvu4UqItmlC1jUp5jRmvFQp1D9Wz+m0FH6FDMmBu7jhxVhag/ Wp/aLCDSovvwO85ALtCjqHB6T/iuZgkQ2Utg9MtHtfOQ2w1njA0rDJOL97aNmuhlD011 l5wg== X-Gm-Message-State: AO0yUKX2uRJ4EnsMzQEIfEg/063BhEzr48LEnsxXd4xwJda1rnz5gi5N PHkOoVuKuXmuva+t+bRa0skpvKz7wLPBCCvIjUQ= X-Received: by 2002:a17:90b:1b4e:b0:22b:b82a:f3a2 with SMTP id nv14-20020a17090b1b4e00b0022bb82af3a2mr12083938pjb.11.1677108473553; Wed, 22 Feb 2023 15:27:53 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id s16-20020a17090ad49000b00234e6d2de3dsm5008918pju.11.2023.02.22.15.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 15:27:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 25/28] exec/gen-icount: Don't use tcg_temp_local_new_i32 Date: Wed, 22 Feb 2023 13:27:12 -1000 Message-Id: <20230222232715.15034-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222232715.15034-1-richard.henderson@linaro.org> References: <20230222232715.15034-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.29 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-bounces+patch=linaro.org@nongnu.org Since tcg_temp_new_i32 is now identical, use that. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index c57204ddad..21a1bff8b7 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -19,13 +19,7 @@ static inline void gen_io_start(void) static inline void gen_tb_start(const TranslationBlock *tb) { - TCGv_i32 count; - - if (tb_cflags(tb) & CF_USE_ICOUNT) { - count = tcg_temp_local_new_i32(); - } else { - count = tcg_temp_new_i32(); - } + TCGv_i32 count = tcg_temp_new_i32(); tcg_gen_ld_i32(count, cpu_env, offsetof(ArchCPU, neg.icount_decr.u32) -