From patchwork Tue Apr 26 16:30:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566047 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3772787map; Tue, 26 Apr 2022 10:02:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy90CN2tG75ONmpZczR0BoF0PDEcfGHyzAQmFcUPa23cOVBOfZ9JlUbfZ+FprBV7KLe8zNz X-Received: by 2002:ab0:4ac1:0:b0:351:ed7d:e65c with SMTP id t1-20020ab04ac1000000b00351ed7de65cmr7755272uae.36.1650992550211; Tue, 26 Apr 2022 10:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650992550; cv=none; d=google.com; s=arc-20160816; b=X8J6VKs20/xSHs2OAApnc9LBzIuHsG29R09uTZq9b3v/exBkiyRFZxqxeifGZyn2DP Mk0Cf6lblUQKYi2/MFuR2umY2MO9v+6JRMGAO+KtaAoVufqFgXZlm1Z3UwzGNxvku1ur xPFqYzkTjnbXzl0ubnNgPDJwmSaJfX11vzkEsOYr6RbRkdWQGnjBIKfjyaEpndLOM64l /qdsX6nmCz6cp/KK1R+PXlXQyIWBh762ka0u8pzyXDfn8PyZCkM8DfGp0ee/uqWFGeGo 8WIpjunUUhONHc4FPa0JlbF+/VRlAwkJgvoCAhQCmTh3OwBu4LGzDb7KC5ppFw64OQIc r4Pw== 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=K818fpSFBQPvs73U35nRltr2XwiPqKbJCOKKmgfZ5DY=; b=HXxOuO6L5U5YLUP2MiHmTYCmTyuSS4Irz78nmgBh1pRzRncbeJCNsXEMbHsvULIkTi ca6E0Z9Ef3mALhzvsJ92OtTSZ2VK2RRhJEybvuVPFGCJQ0S1E7kb3pzGNQpNZ27iUgYj heKeyLeAP280SqoO16WnUYjk2/w21zVGHJ4Og4vdLP3NPNdQtpPtioLgZrBA5z/rXyXI +0kSgsTBHoPFo7ELFc97Eabr1f3TPUKOCjCKRAZMj0GLaZowlJRuvZrYitoFMzDCbOX4 F8LE+rhmUUYMqFqnaDgGQGdP0DGPQ13n+rQwrB+EkwUxj/y4L9/aMt324a14nUFxOKLH IyPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zeVBaYdk; 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 x184-20020a1f63c1000000b0034d74fc2d77si526478vkb.236.2022.04.26.10.02.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 10:02:30 -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=zeVBaYdk; 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]:51396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njOa5-0000qZ-H7 for patch@linaro.org; Tue, 26 Apr 2022 13:02:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njO5t-00035f-7w for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:21 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:43802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njO5n-0003tI-Vq for qemu-devel@nongnu.org; Tue, 26 Apr 2022 12:31:14 -0400 Received: by mail-pj1-x102a.google.com with SMTP id j8-20020a17090a060800b001cd4fb60dccso3005221pjj.2 for ; Tue, 26 Apr 2022 09:31:10 -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=K818fpSFBQPvs73U35nRltr2XwiPqKbJCOKKmgfZ5DY=; b=zeVBaYdkqmSHyTZWafckHgewzYs4dW1cO5DUluw40Zsfzlv9UXeAJqbMgu/yA6jVhl QCY7TFi5lqL/akSgXQA+DiDxqbbzeWvjd0iyYznFVMm6GDX1JboJpyTV0v4fZ1O/tAm5 1vKZ911B1Zohfgh8psjBNYAFn973P76U0jwYecXAUIH6MsRoBGWAkAOs4yU1ZirzDsTT S0CnTgGCwjobpwVZ/d0HbMmAoLZemTAh5RTkTX27ySkSUOJjzhK1HoE1Gte16eDseWNN c3cHIkzoB8AfXji/lQTahJeEzStLO0WTrFiZn/+xORy4EvZxFvp9JGdWvUujYHOzz0bM FevQ== 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=K818fpSFBQPvs73U35nRltr2XwiPqKbJCOKKmgfZ5DY=; b=QGAUpXfat4h+tFCjQla1MhuuO1V6Xp2gBhUcM+BOmH6Qs9EBhtBU/f239WW8UvfLri DGrDTFs4O3xfWNat7DaBA1ZqcHvD0sjrclrdmF/RUMReOXFhE5FyHSqyk9N2+Qf/GM6L orXD0zwXI0uBeXdL5pHJXaijzwOLcfLdBCgMEV5PTATtcvXOOFT7gGT8T5s1KgU/A31G AdKFiX89SgPF6CLFzPSjrAKgD/D0UeRPwAFjo9EkrVFe7oosrtOYqOVTPg73aoLtpakj izTu8Z6AQQ2mH+uLovcqVvTq/DCa0dYL8Q8nh/BrRGo/qmOtW09YU1hEuZpPNOuI/GeV JmqQ== X-Gm-Message-State: AOAM532mx0vL8epux5F+t+jFgX5BY21euZ73KPYmccYcjQNIMAa+aLFs Ri5tZDPOAmxcQGBTciF0/6o43A19ZVbDlA== X-Received: by 2002:a17:902:bf04:b0:149:c5a5:5323 with SMTP id bi4-20020a170902bf0400b00149c5a55323mr24490763plb.97.1650990670038; Tue, 26 Apr 2022 09:31:10 -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.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 09:31:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 27/47] target/arm: Use tcg_constant for gen_srs Date: Tue, 26 Apr 2022 09:30:23 -0700 Message-Id: <20220426163043.100432-28-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::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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: 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.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index e4f3db26f6..8476f259fc 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -5137,12 +5137,10 @@ static void gen_srs(DisasContext *s, } addr = tcg_temp_new_i32(); - tmp = tcg_const_i32(mode); /* get_r13_banked() will raise an exception if called from System mode */ gen_set_condexec(s); gen_set_pc_im(s, s->pc_curr); - gen_helper_get_r13_banked(addr, cpu_env, tmp); - tcg_temp_free_i32(tmp); + gen_helper_get_r13_banked(addr, cpu_env, tcg_constant_i32(mode)); switch (amode) { case 0: /* DA */ offset = -4; @@ -5185,9 +5183,7 @@ static void gen_srs(DisasContext *s, abort(); } tcg_gen_addi_i32(addr, addr, offset); - tmp = tcg_const_i32(mode); - gen_helper_set_r13_banked(cpu_env, tmp, addr); - tcg_temp_free_i32(tmp); + gen_helper_set_r13_banked(cpu_env, tcg_constant_i32(mode), addr); } tcg_temp_free_i32(addr); s->base.is_jmp = DISAS_UPDATE_EXIT;