From patchwork Mon Feb 24 22:22:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 183788 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp925485ile; Mon, 24 Feb 2020 14:28:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxH06dDQs/ox5qIk7Fr0dGlkkbT4oS+siOjIoib7RXiUfkogUTOEpj8THsMo8a7xSN7LLlD X-Received: by 2002:a05:6214:28b:: with SMTP id l11mr47658125qvv.15.1582583284139; Mon, 24 Feb 2020 14:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582583284; cv=none; d=google.com; s=arc-20160816; b=qEdsnpz5q+j9Q9bQi7daeOyLFFyaG8yxba9CRhAfImFfXo2xtb6Xg72uMxOmwfh6q9 jP0/MHfiRDMylzFLg3YJGZIwke5leWDFlhhanG88QggNr1q0zu9mnch66i127ZPOTxr9 Znf9I1i4y6E+UCvpu/TiG4uvdtVkiRtg7s6mCSiJFhdjIf9Fou3D33ykVKPQBPWiyGP9 +GreTUytEvX9Nf9Gzi9x/69nFIPhLeKfWpCXWMmglKypGFfNPLWGCl54jOkeL6S23x8Y XJlb5E8EuX2E08N2fiJk08N12qm4CFT3KEJgX6ZbP7djeDG7gfCanB2wtmQ3ktEbFbev SdDA== 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:message-id:date:subject:to:from:dkim-signature; bh=NdhOCLWIrz3fKIXemltzqY1AnfnjgmcetiILUwX+2Hc=; b=vorNENWwPLNU/IqGYmgxbCgoFPgs1yPHYFcLR3FA9uw2toTpprHbrQmUttsLBOznGB 0zHdC7goKBAMiMCn9S/sxlO6unFEqv548hRJih58oOuunv/dQ38QDvX7Fm1Nu7OirXne PlfMS9b1VQPNKDwKkEQVu7ng2EIlv1LMLWLEzOawxdQ3N+rVtIFmlggktycvpvaDftV3 1LH9d3sIOmkzKv0JqVg0YK9t+Vp3zpL6oFsYN71o3eGgFrUnpCHl3A1qgvfaFeIvCmXR zQ2z/CthXGQ23LX/Y/BjzTjdE3U282VrcPk6/ZHsrsUmEYQX9Bf07JeBKr3TJHYALNJb v/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AQ0nbMbb; 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 ej6si5861272qvb.147.2020.02.24.14.28.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Feb 2020 14:28:04 -0800 (PST) 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=AQ0nbMbb; 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]:45314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6MCp-0005S3-B0 for patch@linaro.org; Mon, 24 Feb 2020 17:28:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37640) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6M7Z-0003yK-EZ for qemu-devel@nongnu.org; Mon, 24 Feb 2020 17:22:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6M7Y-0005ih-6W for qemu-devel@nongnu.org; Mon, 24 Feb 2020 17:22:37 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:34248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6M7Y-0005iE-1Z for qemu-devel@nongnu.org; Mon, 24 Feb 2020 17:22:36 -0500 Received: by mail-pf1-x42a.google.com with SMTP id i6so6079073pfc.1 for ; Mon, 24 Feb 2020 14:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NdhOCLWIrz3fKIXemltzqY1AnfnjgmcetiILUwX+2Hc=; b=AQ0nbMbbKnOeXsuYdonsMfDDDPEJjkI38Uzua9Vt26W3gFIcZspa0QnA8fAqDipIpB 87NkJClQkVnM0wsekdo+cCMIFK+V4+nQuLHMiLLXJ7dOZyhzTviRwjdV0pVjXRirJsr5 SIpt4EaeZ6Z2o1IUjH8cbk3UiQVnr6sZuT8apcOD8BMVqLA9TqIWuflksMCK0DjNXI8q aVsCNsBDU0B8UJ764Zf7m5/FpDca5pmrr2Hsuj0QRnqpMcrlw8BkY5+WxAp0lKMRm3WV 4babYVtAAUVWX0tmFP/zsYlmsdj3cmf7qy21ifmYPRQOPCu1OMqkOmX9BSx4eGyC6Mn3 cDdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NdhOCLWIrz3fKIXemltzqY1AnfnjgmcetiILUwX+2Hc=; b=f2EEFxR7Vt+CEjfcVB5+/a8VSIc7Dq6AALuvpm2G+pnz3tP0inXZlmkx5IzKAMOo4Z 9b/Lgbj049114Zp3YY42MfMJv01V6SLaUsWQS4S06MprjG59pSDG9vbGnXyxPFenvGyg j0UMCGgOxLAL66Nj67fc5K6hr8l/Pcy1o/dSSLWtnE0xvzggoZsRJ20NqjQfmhyLpIUZ RvdOF+kAKlKyl2Xs2Z1LzA8Y8rZGPdc9eXB//Xbsb8rjW3Ro4f1bSVqofrSF7drg3wIJ 4bRkBkFSM+Q325yO1hGDUA8FDL5zBSCKSJflX8cV8dMll7a2tounvMM5mslkRrbfPAEy Tt+A== X-Gm-Message-State: APjAAAXIOAeUf1/LZGNLpHqCBNirWjMA3hFdAszmGfTfaCutpZl3oAsG J8LUYY5FyEwU++ABw4zM0fFGgOeqWcw= X-Received: by 2002:a62:5bc3:: with SMTP id p186mr31464637pfb.162.1582582954575; Mon, 24 Feb 2020 14:22:34 -0800 (PST) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id o6sm13897097pgg.37.2020.02.24.14.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 14:22:33 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 00/17] target/arm: vfp feature and decodetree cleanup Date: Mon, 24 Feb 2020 14:22:15 -0800 Message-Id: <20200224222232.13807-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42a 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: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The main goal of the patchset is to move the ARM_FEATURE_VFP test from outside of the disas_vfp_insn() to inside each of the trans_* functions, so that we get the proper ISA check for each case. At the end of that, it is easy to eliminate all of the remaining tests vs ARM_FEATURE_VFP* in favor of the preferred ISAR tests. Finally, there are a couple of cleanups to vfp.decode to make things a bit more legible. Changes for v2: * Replace aa32_simd_r16 by aa32_vfp_simd. * Add aa64_fp_simd, aa32_vfp. * Improve aa64 has_vfp/has_neon check. * Fix some "any" tests. r~ Richard Henderson (17): target/arm: Add isar_feature_aa32_vfp_simd target/arm: Rename isar_feature_aa32_fpdp_v2 target/arm: Add isar_feature_aa32_{fpsp_v2,fpsp_v3,fpdp_v3} target/arm: Add isar_feature_aa64_fp_simd, isar_feature_aa32_vfp target/arm: Improve ID_AA64PFR0 FP/SIMD validation target/arm: Perform fpdp_v2 check first target/arm: Replace ARM_FEATURE_VFP3 checks with fp{sp,dp}_v3 target/arm: Add missing checks for fpsp_v2 target/arm: Replace ARM_FEATURE_VFP4 with isar_feature_aa32_simdfmac target/arm: Remove ARM_FEATURE_VFP check from disas_vfp_insn target/arm: Move VLLDM and VLSTM to vfp.decode target/arm: Move the vfp decodetree calls next to the base isa linux-user/arm: Replace ARM_FEATURE_VFP* tests for HWCAP target/arm: Remove ARM_FEATURE_VFP* target/arm: Add formats for some vfp 2 and 3-register insns target/arm: Split VFM decode target/arm: Split VMINMAXNM decode target/arm/cpu.h | 57 ++++- target/arm/vfp-uncond.decode | 12 +- target/arm/vfp.decode | 153 +++++------ hw/intc/armv7m_nvic.c | 20 +- linux-user/arm/signal.c | 4 +- linux-user/elfload.c | 23 +- target/arm/arch_dump.c | 11 +- target/arm/cpu.c | 67 ++--- target/arm/cpu64.c | 3 - target/arm/helper.c | 4 +- target/arm/kvm32.c | 5 - target/arm/kvm64.c | 1 - target/arm/m_helper.c | 11 +- target/arm/machine.c | 5 +- target/arm/translate-vfp.inc.c | 448 ++++++++++++++++++++------------- target/arm/translate.c | 122 +++------ 16 files changed, 498 insertions(+), 448 deletions(-) -- 2.20.1