From patchwork Fri Apr 22 10:04:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 564823 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp369707map; Fri, 22 Apr 2022 04:15:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU3xcHQIyYoYQ6E2ReOWReAO+vJqINHUyIT7vPbJbtzvswt2t7/pPZw4Cu53PL8dZlRqBC X-Received: by 2002:a05:622a:6094:b0:2f0:6a1f:b7cc with SMTP id hf20-20020a05622a609400b002f06a1fb7ccmr2700107qtb.392.1650626114758; Fri, 22 Apr 2022 04:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650626114; cv=none; d=google.com; s=arc-20160816; b=KygnePhLVg2GPfENlTC8Z4LrYARRU36cQuwJnCCOVbOOLNWburkdu5mgvPF+wjuHwN kEIBmsUH545abpjuZwH2Jz9MDZSZ4K/xCcE++LQUI1aiQc5YXuBMObIKYO768Ifait1u jza9n06xToKKwWOxpN4zGfJh4cE1AW3qfT1siPJQH/LtwyglN2jt4vmr7kUX+ltpFF5B 1PPeRe6My+c8/kp7ras9yuYoOD9QLr7iojTo9YhI4nYO1TqtIwaBJKZTaKiUgEPJGSBV ihkQpyU6yoo3NdjBAAHzosMlihWJSPxq7UjwTJqemP9N781qfnRABhnUwzs6r08lLPMI ywnA== 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=B02wNUQWPbSndWLw/MyCz76UBwGsg2MrYi8CgBL9/W0=; b=yql+fvaLTgv4cxzdp9glA1gK8khYV39U6B1YCRxmSi/TI0VyiRMlasZNi81CER+Um1 GQg+K+DJpoaivluFekJDqjJhG8ErfCE0QiN+huolsZ6xZ+e7WfABjj/9KAtouiT3jmQ1 YLhYuqrT2bPmVsNbNa6YMtsvep3jN7fy4caleBNT5FH8natyhP/VXFeN1i9FiGEuR0mE cj8lOqjfTq8/ep644gu9aEDuIfWT+YBg2WV+GMlvKGH0V/aDzNHnDHuOI5bIC1LKEJWj HZRb6MbF7qn0129KH8uIk/BXgDV6glWSKfxejbLqOtMfzp3P2onpLSbcivb8KWI9FROB /rhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VI8kYcVg; 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 t189-20020a372dc6000000b0069e68f301ddsi1984605qkh.640.2022.04.22.04.15.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Apr 2022 04:15:14 -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=VI8kYcVg; 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]:58726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhrFq-0002a3-B1 for patch@linaro.org; Fri, 22 Apr 2022 07:15:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhqAR-0005dc-Cv for qemu-devel@nongnu.org; Fri, 22 Apr 2022 06:05:36 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:44918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhqAP-0002zZ-Tk for qemu-devel@nongnu.org; Fri, 22 Apr 2022 06:05:35 -0400 Received: by mail-wr1-x430.google.com with SMTP id b19so10282612wrh.11 for ; Fri, 22 Apr 2022 03:05:33 -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=B02wNUQWPbSndWLw/MyCz76UBwGsg2MrYi8CgBL9/W0=; b=VI8kYcVgKhiY8f8DOPY+6th2FfzdCM3llZ9LIzXFeRzPYASoGMUxCqvekXmInkQ3jl RuDU/qkC+gADu2xZaO+p22YKzfHdqRJl1HjCBToNW6MUslh06P9Tryhp6oog2azFcI0m 9dQUT7/4LYUnjMp3GjnVYVi1VcK49ym4gGkbt1o5kSRS52PrrulwYtoPRgAul3GRgccs VG/+BJmynfYNt2SgfiMX7IYX2idC5T7zpDZuB+y1R9m9ReKO3hlMVxjcW1S0LM4QGZ7D ldjBjojdEySo3S/IcnTMInlw5UErKNr8QGL5DfABzWcvoua4OAf4svJGaGeJtJJNJOA+ /FDg== 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=B02wNUQWPbSndWLw/MyCz76UBwGsg2MrYi8CgBL9/W0=; b=urqyIcErjJnHsoqMglvXZD5rZ5aATQrJLzmr3S9HASA4Huyz2eyRcb7IuW9gHrve/6 FzEff2nTEAs4a/tLGb0k9shlboQIsWf1VN7uyvANZpC6+2rKuIOBmJPpp+sU6dZD2e34 IFdm8z1/Bgf7JqxI58sCNv9qcYMcy7uSbrhAsAAKxYOV9rtGlPVW9Tgvnk0V5QFEhwHz X7qTH/G1UbeWo42FoAT2U8pxWK2q4Tp2swW+tIqSdOCikY5BbhX2TbzM8/z2XntIzYgX HwVdmui6WGCtBRIqafsISfhhVahb/HFi7HAHCUGVN+Vjdz9zpesH+DHRfA9SwweKx0t2 yAmA== X-Gm-Message-State: AOAM530Ht4pDviChKjqVD5HXi7Of2FOykBhsY8qWktW5faA4QPSb9CY0 eDsBVEF6WlILwxilUTy/7sKuYrbik2/xaQ== X-Received: by 2002:a5d:49c1:0:b0:20a:a65b:4648 with SMTP id t1-20020a5d49c1000000b0020aa65b4648mr3074559wrs.707.1650621932558; Fri, 22 Apr 2022 03:05:32 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id e16-20020a05600c2dd000b0038ed449cbdbsm4312148wmh.3.2022.04.22.03.05.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 03:05:32 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 60/61] target/arm: Use tcg_constant_i32 in translate.h Date: Fri, 22 Apr 2022 11:04:31 +0100 Message-Id: <20220422100432.2288247-61-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422100432.2288247-1-peter.maydell@linaro.org> References: <20220422100432.2288247-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/target/arm/translate.h b/target/arm/translate.h index 050d80f6f90..6f0ebdc88e5 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -332,16 +332,9 @@ static inline void gen_ss_advance(DisasContext *s) static inline void gen_exception(int excp, uint32_t syndrome, uint32_t target_el) { - TCGv_i32 tcg_excp = tcg_const_i32(excp); - TCGv_i32 tcg_syn = tcg_const_i32(syndrome); - TCGv_i32 tcg_el = tcg_const_i32(target_el); - - gen_helper_exception_with_syndrome(cpu_env, tcg_excp, - tcg_syn, tcg_el); - - tcg_temp_free_i32(tcg_el); - tcg_temp_free_i32(tcg_syn); - tcg_temp_free_i32(tcg_excp); + gen_helper_exception_with_syndrome(cpu_env, tcg_constant_i32(excp), + tcg_constant_i32(syndrome), + tcg_constant_i32(target_el)); } /* Generate an architectural singlestep exception */