From patchwork Tue Apr 13 16:07:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 420233 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp2762872jaj; Tue, 13 Apr 2021 09:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZBlHB8t2RxcZKky1fVpFAHfhOmxguGN9J7s0ZPnFXepahZKTnKi9rPFjXuMzcd6UhrHyN X-Received: by 2002:a05:6e02:1d88:: with SMTP id h8mr11871294ila.66.1618331065044; Tue, 13 Apr 2021 09:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618331065; cv=none; d=google.com; s=arc-20160816; b=TI1nC9785x4bAdfPtN3eIUgfzFWcZmXD+fi1Iylf8XFJBIj6YW5+Yr0Ru5lyONrPhF 3tH/OZi73QOoTtA4SxvYLApjbHWx0oqv05oCslrd1LLBFc6NQcdK/33GLeg+jsYAD/r5 7CgqdnL+QdNcYHqLdnc5co9zc73+K8yNkCa9lLyclwxjJHLgKjZKnBMq29XsEipIaTb6 rDv9vsnvetwkWUWCNLl8y5DN9fy/mN8fsxe+vueSjhERaMXvhWPmAmVZK4y/ZrIWf1KT 64rUMD2l2qBBo8SQ0jQJiIkanuKNifkZWkLL8ypeKrItIOaC2eN830d8yREprULQZKb0 UPTA== 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=3a6hJI/Z9I/W5ssdG0WCaeNEsNPyYAWvgCozZQou3Pg=; b=PvWY5s5cbP1LhW4viLjCdCqbxCTP6MCZX2HqwI/dcHr1R9xfjc09YZ125u+M6m/+UK SgiBwu+lLvsF1pFQJQ/ZFu5Kdn3FJ78wLI3Sp8ZEziJ7IqMCjGJgGYQHaTqbnZdg1tWS 7g4XHxbSQR5vuM0yjDNestbSj+b0jqeUKGjmU4DlTOYjN+MV9QbXhWCg7x5rLQSgzjg1 7J5RDF1jQOeZAwd2rBva/tR39xNy1RHLn7a2wn88YehaSbbHYR0caAlFtyDuxCWskciI /LtVvibGn2LCzzd5vD6InM7vs4mgQg5zR1WGrWO/xgw3H2PCpmLdV9G6nb7YbqEyr+S4 SBMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p2hTKYVN; 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 e4si10282680jam.31.2021.04.13.09.24.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Apr 2021 09:24:25 -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=p2hTKYVN; 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]:54696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWLpw-00082o-HG for patch@linaro.org; Tue, 13 Apr 2021 12:24:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWLaV-0006J3-Cr for qemu-devel@nongnu.org; Tue, 13 Apr 2021 12:08:27 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:40492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWLaR-0006vV-1O for qemu-devel@nongnu.org; Tue, 13 Apr 2021 12:08:27 -0400 Received: by mail-wr1-x42c.google.com with SMTP id 12so17030585wrz.7 for ; Tue, 13 Apr 2021 09:08:19 -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=3a6hJI/Z9I/W5ssdG0WCaeNEsNPyYAWvgCozZQou3Pg=; b=p2hTKYVNFhKV2MnrIgAJ9v+JEjwKGWxwAFANv8aPrkb/0FAB830YdQwrpt7ZkOlPVn Lh+oOVQoWQ7BbV+C+E2aTH4Y+EGufHMbKdhhYd72c31fG9J/ps2DXMueJefLI0ZH40L6 nAO86ZzJgadT0LUUkfEVi3G0lpEU/G3www0a2NSzUe47+UkpZVf7vF+T6u+zIA7A8Lpb LTQDLnvHpqCF2YyMgSW0gPG6UiDNYQWIlt5J3XOFeOiFPGjsimjqdiBujCcSGHkUxLli Kd5aU+3Co9AEHdLm3nCewYcjwt3Pb3BIP23dvVet+Mg8IXpcF2UAq3GEyM9xOd4ch9of 3eSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3a6hJI/Z9I/W5ssdG0WCaeNEsNPyYAWvgCozZQou3Pg=; b=j4Ng/UeJVz6xRYColn0h9H7maKOaX8tZiw4zg4XOAMpXAgPSJW/0XBD7JzKQXnAFb9 ElTJWdo4+c6/rTh1BOIf2eUTKQZMXexhbK3+aypzEtfEFzzcaq7+kbDWjcGqzqJ7CIU/ x9PH/Fe5bp9fQV8Wtmtg5MaHEqKiWJfdBI7/yvoALwagZ+ReKbCnmMAtlEVUihMqclsV ytlktHEBpLQCQE3EKDBB/qJ574WfhGnOYDHBryTQeohh6ri+aOsdpYg+lsG6q71iNcDO A4lLIZHVxRpDfmRMOtPe7HBKWCGvR/SXoqBa8EhsGY6QM0APU60YdgJtCnnImymNjm6y UafA== X-Gm-Message-State: AOAM533VKaN4k/rg1fmxchmVFyo+yLMOf+Fi/mk5tj2mQF/UFCcBxYiZ qgn0uRdwhWbMezIiJhuygYVSWURuOVOCbffZ X-Received: by 2002:a5d:400d:: with SMTP id n13mr16631553wrp.372.1618330098864; Tue, 13 Apr 2021 09:08:18 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id b1sm20810888wru.90.2021.04.13.09.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 09:08:18 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 08/13] target/arm: Make translate-vfp.c.inc its own compilation unit Date: Tue, 13 Apr 2021 17:07:54 +0100 Message-Id: <20210413160759.5917-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210413160759.5917-1-peter.maydell@linaro.org> References: <20210413160759.5917-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42c.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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" Switch translate-vfp.c.inc from being #included into translate.c to being its own compilation unit. Signed-off-by: Peter Maydell --- target/arm/translate-a32.h | 2 ++ target/arm/{translate-vfp.c.inc => translate-vfp.c} | 12 +++++++----- target/arm/translate.c | 3 +-- target/arm/meson.build | 5 +++-- 4 files changed, 13 insertions(+), 9 deletions(-) rename target/arm/{translate-vfp.c.inc => translate-vfp.c} (99%) -- 2.20.1 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson diff --git a/target/arm/translate-a32.h b/target/arm/translate-a32.h index a874253321d..96e6eafbde4 100644 --- a/target/arm/translate-a32.h +++ b/target/arm/translate-a32.h @@ -22,6 +22,8 @@ /* Prototypes for autogenerated disassembler functions */ bool disas_m_nocp(DisasContext *dc, uint32_t insn); +bool disas_vfp(DisasContext *s, uint32_t insn); +bool disas_vfp_uncond(DisasContext *s, uint32_t insn); void load_reg_var(DisasContext *s, TCGv_i32 var, int reg); void arm_gen_condlabel(DisasContext *s); diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c similarity index 99% rename from target/arm/translate-vfp.c.inc rename to target/arm/translate-vfp.c index 873a6237ea1..a9069458082 100644 --- a/target/arm/translate-vfp.c.inc +++ b/target/arm/translate-vfp.c @@ -20,11 +20,13 @@ * License along with this library; if not, see . */ -/* - * This file is intended to be included from translate.c; it uses - * some macros and definitions provided by that file. - * It might be possible to convert it to a standalone .c file eventually. - */ +#include "qemu/osdep.h" +#include "tcg/tcg-op.h" +#include "tcg/tcg-op-gvec.h" +#include "exec/exec-all.h" +#include "exec/gen-icount.h" +#include "translate.h" +#include "translate-a32.h" /* Include the generated VFP decoder */ #include "decode-vfp.c.inc" diff --git a/target/arm/translate.c b/target/arm/translate.c index 9522002d34e..2ed02df05e0 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -1167,8 +1167,7 @@ static TCGv_ptr vfp_reg_ptr(bool dp, int reg) #define ARM_CP_RW_BIT (1 << 20) -/* Include the VFP and Neon decoders */ -#include "translate-vfp.c.inc" +/* Include the Neon decoder */ #include "translate-neon.c.inc" static inline void iwmmxt_load_reg(TCGv_i64 var, int reg) diff --git a/target/arm/meson.build b/target/arm/meson.build index bbee1325bc4..f6360f33f11 100644 --- a/target/arm/meson.build +++ b/target/arm/meson.build @@ -3,8 +3,8 @@ gen = [ decodetree.process('neon-shared.decode', extra_args: '--static-decode=disas_neon_shared'), decodetree.process('neon-dp.decode', extra_args: '--static-decode=disas_neon_dp'), decodetree.process('neon-ls.decode', extra_args: '--static-decode=disas_neon_ls'), - decodetree.process('vfp.decode', extra_args: '--static-decode=disas_vfp'), - decodetree.process('vfp-uncond.decode', extra_args: '--static-decode=disas_vfp_uncond'), + decodetree.process('vfp.decode', extra_args: '--decode=disas_vfp'), + decodetree.process('vfp-uncond.decode', extra_args: '--decode=disas_vfp_uncond'), decodetree.process('m-nocp.decode', extra_args: '--decode=disas_m_nocp'), decodetree.process('a32.decode', extra_args: '--static-decode=disas_a32'), decodetree.process('a32-uncond.decode', extra_args: '--static-decode=disas_a32_uncond'), @@ -27,6 +27,7 @@ arm_ss.add(files( 'tlb_helper.c', 'translate.c', 'translate-m-nocp.c', + 'translate-vfp.c', 'vec_helper.c', 'vfp_helper.c', 'cpu_tcg.c',