From patchwork Tue Apr 26 16:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566032 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3759614map; Tue, 26 Apr 2022 09:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/pkh/OGv/tUfmrB0VWQvXPWTBSnQ3laGuyJ1FBNqFLX+oAmJl767jSnxAP5uKr+TwLhfR X-Received: by 2002:a05:6902:1026:b0:644:bde5:8228 with SMTP id x6-20020a056902102600b00644bde58228mr21416904ybt.421.1650991492743; Tue, 26 Apr 2022 09:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650991492; cv=none; d=google.com; s=arc-20160816; b=EzkXtZbtJLOFkPHcVeZUrjsCmLTSkvV5G0LXX16HntkRa5Otcy6p46xPKzE93vdfNo GjFF0KENljKfhAtedJvsDCOfZVI6oylz5GpcMsTC/C1PBo3kGXCg16wNCApychxX2vSh t0+nhcuk3k/r8HuRiq8Aw0dKRwD98AWSl17AZqvujnN2qqp07MVUK+mcFzurmZXL/0vj ZyF4D40zrOBFXojJa/hHz0AX/xJwnyDUvUf+5FcIC90oHSv7h58iWMErZcNCoaRSS1tt uh0mQjSpi/As3p/80HRB9Z7Jz1MK7EB/cm05oLy4Fl0KnRgBKrBDSbqDU52LDlCmMHym brww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=6bRLZdi3rldJQhxVk4t5p5Sfqgb/tmNaqa3IEpWhsOc=; b=jq+1/dtPQZGO25dK1TXggSa190hUw+zfVJSUbe4Wd1phAD0Od0T/ZmIw8y56ZHbfav yv9mCm635aMCDFArsIPBrtwptJ0UfxAlmDVQvaN98E74luFlBRGWDu20uRmHJ7rIXuAv dD6JFjZfoWL5OLopRXmUW1vxnk604nKyzEeOmCupTkU+hNzzFOgieSH5obcKDtcaktFY jzRoULcesdo3QyJaEEyvg/yCPdsCMnC8rpw5Iu7rn7f5EyJ9+VPfkfvwgXsUldMWLkFl jBADvuUuL5t1sV1UJZhSv1WSqZrtyKYMTB4OZmzuc9xuEhbjOBC5esv8kTK6EgHkGsnl aHNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SuluE+jO; 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 b184-20020a2567c1000000b00641d681f4e9si15275680ybc.19.2022.04.26.09.44.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 09:44:52 -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=SuluE+jO; 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]:39050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njOJ2-0006J1-6J for patch@linaro.org; Tue, 26 Apr 2022 12:44:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO5k-000304-KU for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:14 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:33741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO5g-0003qC-V7 for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:07 -0400 Received: by mail-pg1-x531.google.com with SMTP id k14so16528318pga.0 for ; Tue, 26 Apr 2022 09:31:04 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=6bRLZdi3rldJQhxVk4t5p5Sfqgb/tmNaqa3IEpWhsOc=; b=SuluE+jOKC5WdzeZb8Mte6IGipsin6nP9M27M2XIMGQ90nUiRqjHg/lZGgIKEm85cv TrdkU2GMCjc3gQ77qjkHd4vOqRgxpApMkZ2qoH5a6QiAecA/4B1+6mmVaH/VM1ty8opM xcj/yBSYQNlt4MGUMGo3c652UI5ZuosNreaeGp51KSvepyZW0KGJ5vF5/nXqGWgCGTVY dtqPoV24XTVi5iGNXTAORXCECVg9kuCN0xGogKqixYtKDf7kw0T5XPyKac/joBeVDfqH 2i6dJMvsg5qXqhjORIJ/JLLjwZ1jEaCwCv+v177KDVYnA23YhOw9fw1v14bnZI271uMS 8dHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6bRLZdi3rldJQhxVk4t5p5Sfqgb/tmNaqa3IEpWhsOc=; b=ghD2Y5pcJ+FSdl5aLUrXaksVGlf23eiT/nS+3pSOm3XSblzjHTObMbMlqCh9um9UTf 6vWPCU6EZHcMdaHllmpdSy221KE8lhLVetdBTcdaPJodbV3oRgocn1SGIjjsBBGhYNJC BEw6FilI72W18QBSXZmb/Z7h8q7u68FzrOKyIHz2rFEsokGoe+fQMmfhuWBo0hS9+JfJ NEiyeTROzxndaQGUElhkEcxqwb0Hy8uwVx5redKQeUukJiUdSeHkqcmb+jto+ybrDbeS NCUyKjMgvlq9pRz7sZp5FAl5bkX/e4ABShQwEAWQolKSmlX1iSI9vn8BVJfNHLlXWMVR kI2w== X-Gm-Message-State: AOAM532IPmscLxYeIGEE6M0XkaQBsyrqe0u7TglQPWeDRHW/Ngxj1gg3 1s9A3U9iMxGoB6OKLHiZPEA0WU2l3w8xLg== X-Received: by 2002:a05:6a00:2d0:b0:4f4:1f34:e39d with SMTP id b16-20020a056a0002d000b004f41f34e39dmr25116632pft.14.1650990652986; Tue, 26 Apr 2022 09:30:52 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id y131-20020a626489000000b00505a8f36965sm15655813pfb.184.2022.04.26.09.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:30:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/47] target/arm: Use tcg_constant in gen_compare_and_swap_pair Date: Tue, 26 Apr 2022 09:30:04 -0700 Message-Id: <20220426163043.100432-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220426163043.100432-1-richard.henderson@linaro.org> References: <20220426163043.100432-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x531.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate-a64.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 68e3b5c1f8..af6844b4b6 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -2523,7 +2523,7 @@ static void gen_compare_and_swap_pair(DisasContext *s, int rs, int rt, tcg_temp_free_i64(cmp); } else if (tb_cflags(s->base.tb) & CF_PARALLEL) { if (HAVE_CMPXCHG128) { - TCGv_i32 tcg_rs = tcg_const_i32(rs); + TCGv_i32 tcg_rs = tcg_constant_i32(rs); if (s->be_data == MO_LE) { gen_helper_casp_le_parallel(cpu_env, tcg_rs, clean_addr, t1, t2); @@ -2531,7 +2531,6 @@ static void gen_compare_and_swap_pair(DisasContext *s, int rs, int rt, gen_helper_casp_be_parallel(cpu_env, tcg_rs, clean_addr, t1, t2); } - tcg_temp_free_i32(tcg_rs); } else { gen_helper_exit_atomic(cpu_env); s->base.is_jmp = DISAS_NORETURN; @@ -2542,7 +2541,7 @@ static void gen_compare_and_swap_pair(DisasContext *s, int rs, int rt, TCGv_i64 a2 = tcg_temp_new_i64(); TCGv_i64 c1 = tcg_temp_new_i64(); TCGv_i64 c2 = tcg_temp_new_i64(); - TCGv_i64 zero = tcg_const_i64(0); + TCGv_i64 zero = tcg_constant_i64(0); /* Load the two words, in memory order. */ tcg_gen_qemu_ld_i64(d1, clean_addr, memidx, @@ -2563,7 +2562,6 @@ static void gen_compare_and_swap_pair(DisasContext *s, int rs, int rt, tcg_temp_free_i64(a2); tcg_temp_free_i64(c1); tcg_temp_free_i64(c2); - tcg_temp_free_i64(zero); /* Write back the data from memory to Rs. */ tcg_gen_mov_i64(s1, d1);