From patchwork Fri Feb 14 18:15:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 183504 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp2124837ile; Fri, 14 Feb 2020 10:17:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxZ93wMVPyt2f5ejJWvEYEqSIcgImDUTkK4H3sVh08sHb42iRyJ9Nr3qgaZopK8cpkFXTIx X-Received: by 2002:ad4:4f8f:: with SMTP id em15mr3183647qvb.169.1581704263469; Fri, 14 Feb 2020 10:17:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581704263; cv=none; d=google.com; s=arc-20160816; b=D5cBCDsgKDGnatLNFsrzjPWmEoaF1aMDQ7cYkdgwjOvENDVhHO8aK/AJTOm7G3WIwA 60lCFwCjwpvoqJb6JptsFsT9V3Vh2RSygVl9RDTRe30fJt10nGQoVeWaznKM3sYTeZiw 4LbJNJ99+r1WpLOdIXrU9lKMfvfUPLifcKgRuGXj+Vb0KTFnmDOExvs2qJgwIvzsrtyc dtFojPOPx5psuPXsaJ6GzlLgphibJTjuJURJDGmpozN7rlGCm3o3bsr1d+KRPovLOmld Wfm48ZJ7uOKNQ042NSqFUQm+nMQ9uM0pvlPg7A4KA10OqVGjXZmV1m6Inc1lACIcxeXL Oi1Q== 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=ru+6cKgRUaTCm+8Sv6aB+qI5kicAcCfM8654wxUWirY=; b=vkpxtG62jwmixwDSJ/UVyD5NOFzlYr+vYih5ZKW4fre1dlNI5UjTkmXLq4C2IekBeQ 8w2nEIZkin95B/5xNRlXi7NuXDff5XkEwklifNf2x+3fwq9PgdW+31w9QsDuTqw8GJry 3m0wMFnYV8BMmOUpT2c50A3bHgzomBa92sCdoVR7yjk67A8SLy3NgfMgzco0EDUC+uP0 nqRZ6kBk092TAGiI0pxyZJ+aX/U5WgDXs9aZfM7DFjG/P9W+dbkJtFQ3Dtiv63iJvwfZ uRdpmFljSiSL0IN/2rse+hy32BeXwj56zz5OXHxTreVCODbAaTY9inkBZqD/kc1reJ2g YZnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ib8JzQet; 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 a45si3088110qtk.349.2020.02.14.10.17.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Feb 2020 10:17:43 -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=Ib8JzQet; 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]:43522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2fX4-0007tT-T1 for patch@linaro.org; Fri, 14 Feb 2020 13:17:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60740) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2fVI-0004Dd-2f for qemu-devel@nongnu.org; Fri, 14 Feb 2020 13:15:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2fVG-0008U7-TX for qemu-devel@nongnu.org; Fri, 14 Feb 2020 13:15:51 -0500 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:36910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2fVG-0008TZ-MN for qemu-devel@nongnu.org; Fri, 14 Feb 2020 13:15:50 -0500 Received: by mail-pg1-x52e.google.com with SMTP id z12so5353403pgl.4 for ; Fri, 14 Feb 2020 10:15:50 -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=ru+6cKgRUaTCm+8Sv6aB+qI5kicAcCfM8654wxUWirY=; b=Ib8JzQet9Sa+/d5x5B7sSCFywP5FuIgkslBxfD+XWR+toOjknuBj3Iu7ZRFP+y2tNM g+J2dX99P5+sj+cCjZdC6Sfn6dujEuG6DvXptYNp0fun70G43Qygaz0bTXR86C29kZtc vLiigrM5XyWnVsqrpF+m79Dzu1tTmdgeEzaP1TvcpXs3rNHtZVZg0H6uVIaFSX42uYPL +DgwBDZBscdm/jjAgXlVvvgSiUe2zGYN+2fSkCSANzCov1/yFoOrcj5rPyqkOMkxX0/+ JkwNVbl/Nx1fWfxcd/8ExPyIm7keWrYaMtRRj60BuHnmzCoQ1FqYbc4asAxb+NA1I4Oz LSmw== 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=ru+6cKgRUaTCm+8Sv6aB+qI5kicAcCfM8654wxUWirY=; b=kweHFQRJ2RGDQGgjs91dcuxw5Hir2vpsGytwONSpXhdVpccoyDx7OwC2Bnnia2KPkH 2StwMtjVIb0JNHIUKMvfJgxNGI/dIYq8IC5M4VG29c1N4oVWsoWh6PBCt0WDiFI9OzKi 1tOkub9fff0eiL619Oaecz4tvYGSA6bxlL2gll1TAGWYYjcckvBmJRPPO7SuqGgrBS51 UDPIhGqrgiNh72q8Hh31x7G4fl0SKgchRJnMkw/7RCUWVuKiRO9R3TlyJ76BktPnnuc2 mzvaG9THY7K+gu8bKW3f+YJdSnRmTyPhlcfajsHUoEvPtNDP7fx73Qv+KBXxnSDwKKF0 LhRw== X-Gm-Message-State: APjAAAUemXtwifsB+pCkMmZIpiO/X0+r3C6JPIhCcYUad4Qdo+dRTu2Q 1y97nPuCg4wCHqTne8osR7fm/lochXA= X-Received: by 2002:a62:fb06:: with SMTP id x6mr4544602pfm.149.1581704148688; Fri, 14 Feb 2020 10:15:48 -0800 (PST) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id i3sm7525123pfg.94.2020.02.14.10.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 10:15:48 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 00/19] target/arm: vfp feature and decodetree cleanup Date: Fri, 14 Feb 2020 10:15:28 -0800 Message-Id: <20200214181547.21408-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::52e 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 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. r~ Richard Henderson (19): target/arm: Fix field extract from MVFR[0-2] target/arm: Rename isar_feature_aa32_simd_r32 target/arm: Use isar_feature_aa32_simd_r32 more places target/arm: Set MVFR0.FPSP for ARMv5 cpus target/arm: Add isar_feature_aa32_simd_r16 target/arm: Rename isar_feature_aa32_fpdp_v2 target/arm: Add isar_feature_aa32_{fpsp_v2,fpsp_v3,fpdp_v3} 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 | 56 ++-- 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 | 24 +- target/arm/arch_dump.c | 11 +- target/arm/cpu.c | 50 +--- target/arm/cpu64.c | 3 - target/arm/helper.c | 17 +- target/arm/kvm32.c | 5 - target/arm/kvm64.c | 1 - target/arm/m_helper.c | 11 +- target/arm/machine.c | 3 +- target/arm/translate-vfp.inc.c | 467 ++++++++++++++++++++------------- target/arm/translate.c | 121 ++------- 16 files changed, 479 insertions(+), 479 deletions(-) -- 2.20.1