From patchwork Tue Jun 7 02:47:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579303 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp4669057max; Mon, 6 Jun 2022 19:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5nQbact379CpI1Gurg0FQnWcseIETmBl2ZWLXyHHEF9HAuJikjzajNMpidg4soVPej3y5 X-Received: by 2002:a05:6214:2a89:b0:464:b97d:b686 with SMTP id jr9-20020a0562142a8900b00464b97db686mr22477020qvb.65.1654570762087; Mon, 06 Jun 2022 19:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654570762; cv=none; d=google.com; s=arc-20160816; b=fbxDrGZSW+tqCkH3tP0EQmv0DFJQJ98hoTd7HbDD/ACIRZ5KLug08f8jwD4YmAeTU2 coP1kNTSu3nZH9faL2tMMDmGXX9C3UNES85I0VQPML54TB1gl5huuPcSQIdyiWYbY59L uHJB0IQhXvODdy2Vx3gqQ11VtehiHGPWqNMlKPnB83Hpt5X911TqeN4NrcG0C5KBgpBH aqXxzOsMt9JcSl7bE5LmPgZI4TEh8DjooxEO4+82jyWSIjuGn5XLbG4LdDV429bLHF6B NlA7cTN54w/5a5d+PGjKMkvDjeg3FppuNLAVa8LOHM6huQu7u8jqtJ4lzH1e+N9JYCd7 QXfQ== 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=9sduqmZOJTOFPInX5kBPwJ1DQBTH1uy7cOYRBrDTuaM=; b=B04criAnzynkZMqGpwZkBiVXpt5W67zvSxWZXh6PLzB3zxK+ZAlElgiy5YUZjDcB5d kRlY9Haas5SCX3BS2j6nh0de9dCj2Z/tw23nsWzZN+MgoBta4KSnijsfdEkc7RQ5PgVM UZZ8MXfodGj9a4DpXD1CxW658oFcQ8QNA80dOVZs19NacBrNY6Y/g7KwZ3zgCcMKjVpG /bCoC7y0DdMG0iy/S3RkRzrV75G6GVm8p92yZ2FUbBR9VGCB/3fVbWxD47/sidI0b94t iyhi6JOpEtl3cjjEwlHxsWdLIvWvvNZD6WUE4zMVuktFNncbYWlv97iwsvWo0OLQXixh 2lVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gcunhvgi; 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 s8-20020a05622a018800b00304e9cc7298si3488449qtw.703.2022.06.06.19.59.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Jun 2022 19:59:22 -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=gcunhvgi; 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]:53566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyPRB-0001xH-JP for patch@linaro.org; Mon, 06 Jun 2022 22:59:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyPG6-00078m-4S for qemu-devel@nongnu.org; Mon, 06 Jun 2022 22:47:54 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:45975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyPG2-0000Gf-BW for qemu-devel@nongnu.org; Mon, 06 Jun 2022 22:47:53 -0400 Received: by mail-pj1-x1031.google.com with SMTP id w2-20020a17090ac98200b001e0519fe5a8so14193990pjt.4 for ; Mon, 06 Jun 2022 19:47:49 -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=9sduqmZOJTOFPInX5kBPwJ1DQBTH1uy7cOYRBrDTuaM=; b=gcunhvgicin5IT+6Iih8IhEdEAoA79K3pKRGYVRMSCY1h6R4oWtcRf4vk6ZnNyK0ko LApMcM+4yU2ex5kS1HvvJXZstLr5OwFkZLsnCdg21dX5oNe5IOF2CZ4nyszdVMJrlJ3K CcMKDckNyPLwVdNsCGH4oPC6aSmsv0Sxz0alcnPMLCuudlHacG3k3lI/ZL0tLGY4P+zr kkIdnKnt4498nn4WQv7TxbBxCAheba92XVwZYCgm+5bvc0qJ1GhhR2ItL89yXuokd8vi wrVwYWCREJr32D4p5xNATyX6IV2pQADdka/aDiObyPOXflDNpGA1c+KuqwhSbrPmCXfK 32cg== 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=9sduqmZOJTOFPInX5kBPwJ1DQBTH1uy7cOYRBrDTuaM=; b=kah8N0KXeC72KlC1Lz6maL4+4IRLmE3qd6Wpnv+Sipw0AVWNmtG7/zB9ioM4MzvO5c bxtieXhnIoZlgrxWwysM0rfIIxbNinYBxrhOQq71BHJz7aK3wdTTqoRDwWK0T/pUVRyd wre+fmWwJ7WlD8r4sSp2Ca7KOYNJ/DbASzGPpCpIgfkV2RxrCZ/SyHToT92Bk0pDsGqg DClUduDrlwoIWnT3zgf8yq7b2rhiC/FwU9J+ZvF1q/5J4nCWjNf7Kaz4p47BBMPVtC6K DxxsIX96DvQzFYqMwUSzKlC2WopvPz0Rv0DrUJn8ur8xtjZx4TCl57w6+dqB9saHnVF/ XjMw== X-Gm-Message-State: AOAM533t0l/7ySd9+Ax6U0WmoDOvS4klLdUPGtH/NbhfgbSdpwLBc8IM MbTfuQgEQYsvUG8frXU4GyoVO5rs0hIiZA== X-Received: by 2002:a17:90a:e7c7:b0:1e6:8093:3fc2 with SMTP id kb7-20020a17090ae7c700b001e680933fc2mr29335173pjb.7.1654570069517; Mon, 06 Jun 2022 19:47:49 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:d3db:cca:e5c9:6531]) by smtp.gmail.com with ESMTPSA id y26-20020aa7805a000000b0051876d83714sm7476904pfm.196.2022.06.06.19.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 19:47:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v2 16/25] target/arm: Move gen_exception to translate.c Date: Mon, 6 Jun 2022 19:47:25 -0700 Message-Id: <20220607024734.541321-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607024734.541321-1-richard.henderson@linaro.org> References: <20220607024734.541321-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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" This function is not required by any other translation file. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate.h | 8 -------- target/arm/translate.c | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/target/arm/translate.h b/target/arm/translate.h index 4a93cac65f..d7a9acf5a9 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -328,14 +328,6 @@ static inline void gen_ss_advance(DisasContext *s) } } -static inline void gen_exception(int excp, uint32_t syndrome, - uint32_t target_el) -{ - gen_helper_exception_with_syndrome_el(cpu_env, tcg_constant_i32(excp), - tcg_constant_i32(syndrome), - tcg_constant_i32(target_el)); -} - static inline void gen_exception_advsimdfp_access(DisasContext *s, uint32_t syndrome) { diff --git a/target/arm/translate.c b/target/arm/translate.c index b8a8972bac..fc5eafaeeb 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -1086,6 +1086,13 @@ static void gen_exception_internal_insn(DisasContext *s, uint32_t pc, int excp) s->base.is_jmp = DISAS_NORETURN; } +static void gen_exception(int excp, uint32_t syndrome, uint32_t target_el) +{ + gen_helper_exception_with_syndrome_el(cpu_env, tcg_constant_i32(excp), + tcg_constant_i32(syndrome), + tcg_constant_i32(target_el)); +} + static void gen_exception_insn_el_v(DisasContext *s, uint64_t pc, int excp, uint32_t syn, TCGv_i32 tcg_el) {