Message ID | 20220428143958.2451229-12-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 2e9917194d0711b19f276c2e9091503c7beb11e2 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp5527707map; Thu, 28 Apr 2022 07:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdav0tIEEVtbY+rtug+RJypBFQtY+SJGGJ1Bl8VB3eSz7ygS7kviCas+yWnDaSVPASODdy X-Received: by 2002:a5b:c7:0:b0:633:7f15:9729 with SMTP id d7-20020a5b00c7000000b006337f159729mr31127156ybp.98.1651157327548; Thu, 28 Apr 2022 07:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651157327; cv=none; d=google.com; s=arc-20160816; b=CQI6qnA5/oaEDxHoQQ+/2DcgqizGVA+WeXcKG/37bHSdSAk2pR2lPfmUiocP7sYWpb DjZyqDZjPZt9RMn19c4M/YTrZ9w6PGYJ1lVuYDNwV+jZJ6+8KTitlv6af9Gfgbsrm0Xv ua8d/FwvK7ne5Mk2Muay57TFLdytDT2iC/adDGBt6MtshrITEfGY1bkLVCfOtyBTRlbs 55C5hcPKb5z+nmEoO4Ni0BOFj01PGoAW1ubCoxY5qeChMiEhstO5BBkwuXv9Zc8hKLoL 1rk+dl9WeW43u2w/NF2dZbGE54W0pshlBOpLqIDSgL1k3ZR7YteKnt+SgrdC6OBb/eOx OCzg== 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:to:from :dkim-signature; bh=amJ1wAQFFeMkaEoQ+Syu7vcVWtMApQ5amALa28nj+ss=; b=womoRBXQIkBhkNaP0X7DbU4HFbLCXNQluoV8jMSEs5s3mRtwOk5idozeVq1mRZfh0D P9nKaRqM9OvsrK91YUGEfJk9HOCV3T6wqld46Q21F54xNJxckpxe1MR5sxuUezNt1Qte V3ARLjCM5Z89QtzIEP9cQU0Nblb+ZQ+KQqwfhUFHrxibm66fwealErrwTG2L8pxNbwp0 Z+zamNrJ/Q1w3EEncLykb4lp+SvuWoicDJ2XCR//r4gEYwoqEnLc+PFs95rYLRFryVqS p+aINCbg2BaPd6LYsnVnO/3I6LfmNT+TGEvHHpoBJmXqB4D+up8GGTI1zGUO/y13TCQq wZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zkfeXwDB; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z129-20020a814c87000000b002ef32f18fc1si4129019ywa.185.2022.04.28.07.48.47 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Apr 2022 07:48:47 -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=zkfeXwDB; 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]:57760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nk5Rl-0001kj-Pt for patch@linaro.org; Thu, 28 Apr 2022 10:48:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1nk5JY-0005AY-LL for qemu-devel@nongnu.org; Thu, 28 Apr 2022 10:40:16 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:43977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1nk5JX-0006Ev-0W for qemu-devel@nongnu.org; Thu, 28 Apr 2022 10:40:16 -0400 Received: by mail-wr1-x432.google.com with SMTP id v12so7060266wrv.10 for <qemu-devel@nongnu.org>; Thu, 28 Apr 2022 07:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=amJ1wAQFFeMkaEoQ+Syu7vcVWtMApQ5amALa28nj+ss=; b=zkfeXwDBsfYaPv8+McK/TKqt01VJZefy15cuHrta4VBtSYUDe9UwgBQn1LXCaduYhr MqxRAIg9N3BgDdo57rUy9YRBmhRBnZPHVgfw56S0ibbsglSHDfWgky0LPJm9+1pB2YGs b11c3xuMrsD+R85BzoUCvxQEyNlsvaGddmdyAwCv7gcl1fqALsAPN0W9tbLXB2IVaz4A M+9YSwGzuWAjWsc+jFVDwDLOpz8GTSYW+/nEh53fuFnAEif4dkGbI9PMGJkl3+sfP+V6 OPWgrRgqA0dtv11nrWTOJ7nBu1IOexJeuaXLKxCDcgEr8Sw5uyvv9dRHTapLabxtRjcU +B3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=amJ1wAQFFeMkaEoQ+Syu7vcVWtMApQ5amALa28nj+ss=; b=nK3PODzOpbhR6vg3toapjYgxIAnycP3LgKO7QDhZIOvbodq0DKYe4Ydql0tpEnaBhQ 4CuCeF7RNN9YLK/9rUahCHEzV47epyfJmi6O46YETohN2ALDKo9vKPwDAwq3bwrG0bgO 4Hs8QyO21vNvf+3rsA5bvaZA5CoeZsZ0m00gNQawT/hg4xiHoujdjLujFNiuI8QHdh21 KWOZGpwyLBa1RsrshL7boaMoHWZGVwM93j1PngG8VWzsrA566fQddHj3DiivJpPFbWZw J7IId+VArxm5BY/RHcll81Z0oDNHvq2lmfYt/EGjpm6cTW4wzpbx6zSrbu/fd3sOhZDY 3Pcg== X-Gm-Message-State: AOAM532ALNqOzai8RDM2rSVYKCUU02sk5h6X5ikNm3IFiywXleMnFPqE AAefME9E9aZyhfVkbF6mPhOnP032SauPMQ== X-Received: by 2002:a5d:4e92:0:b0:20a:cafc:ebf1 with SMTP id e18-20020a5d4e92000000b0020acafcebf1mr24599957wru.17.1651156813725; Thu, 28 Apr 2022 07:40:13 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id bh26-20020a05600c3d1a00b003928db85759sm130221wmb.15.2022.04.28.07.40.12 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 07:40:13 -0700 (PDT) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 11/54] target/arm: Use tcg_constant in disas_add_sum_imm* Date: Thu, 28 Apr 2022 15:39:15 +0100 Message-Id: <20220428143958.2451229-12-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220428143958.2451229-1-peter.maydell@linaro.org> References: <20220428143958.2451229-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x432.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=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[PULL,01/54] target/arm: Use tcg_constant in gen_probe_access
|
expand
|
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 4cdc869d522..6c88772eb32 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -4178,13 +4178,12 @@ static void disas_add_sub_imm(DisasContext *s, uint32_t insn) tcg_gen_addi_i64(tcg_result, tcg_rn, imm); } } else { - TCGv_i64 tcg_imm = tcg_const_i64(imm); + TCGv_i64 tcg_imm = tcg_constant_i64(imm); if (sub_op) { gen_sub_CC(is_64bit, tcg_result, tcg_rn, tcg_imm); } else { gen_add_CC(is_64bit, tcg_result, tcg_rn, tcg_imm); } - tcg_temp_free_i64(tcg_imm); } if (is_64bit) { @@ -4232,12 +4231,9 @@ static void disas_add_sub_imm_with_tags(DisasContext *s, uint32_t insn) tcg_rd = cpu_reg_sp(s, rd); if (s->ata) { - TCGv_i32 offset = tcg_const_i32(imm); - TCGv_i32 tag_offset = tcg_const_i32(uimm4); - - gen_helper_addsubg(tcg_rd, cpu_env, tcg_rn, offset, tag_offset); - tcg_temp_free_i32(tag_offset); - tcg_temp_free_i32(offset); + gen_helper_addsubg(tcg_rd, cpu_env, tcg_rn, + tcg_constant_i32(imm), + tcg_constant_i32(uimm4)); } else { tcg_gen_addi_i64(tcg_rd, tcg_rn, imm); gen_address_with_allocation_tag0(tcg_rd, tcg_rd);