From patchwork Wed Jul 31 20:37:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 170244 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4472573ile; Wed, 31 Jul 2019 13:41:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRTq1ltYRwJb/tfhxJ87BdZ3NpTzt1oIZdT07xwEZ+n4xrLPd9CRssJnJAS+27Gfz1D580 X-Received: by 2002:a67:fd91:: with SMTP id k17mr80434407vsq.121.1564605663456; Wed, 31 Jul 2019 13:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564605663; cv=none; d=google.com; s=arc-20160816; b=LEE2La6cicfZ+CeatamkzYsZ39TFFfUMl+y1y9a7D0ujlUlgdMg7/rr3cTB8J43mrV a47bkyh9dLgdKNwVDhKDsQT1FOZmRyNvHuQqFWHj5rToygzIauL6CWMyujlkfxPc7gPi TMFvpER3IXMM2R0gIz0TjXAgVnJIMDFUvXRuu+mqqot0rsXRU1dRCpPlJpDxYvrFBW2I WDTSXKUH5GB706UOBmBr3YbuiJSLsgtEts8hJKiZJqvYX0/x1isOLFfftuoV/sdxC4Ox BMeuPCMIr1Pz0ibn6lJoKmTJoV6OooVl8Bm7/0M2S3U0IuzqPtqlTQ2oHWORHYq3YlCS HElQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=6IeFtwkeZbBPVLT5Rmllb3ExAsBhlKcdIq9EZhAeEOQ=; b=zjr1Oxl3F8/aQMUK2NyBacBjqB8Zcl5ujsEmjv1ZYJ4w90bkTUwv7mUdSdGlRbr3bk /3Mw+dikUgS6i5pwxoN4NQfzV/v0h/sp8g7w+FATScELI9yjH8nSyKVUh567nMDdYvXm w12m9LKEYGJavgIkj2B+AkSBeGheVSGRJRHCDkK2DNnX+7o3R1gfJQl2JfRpfLC+yS2Q Mxb3b5tAkIsxgDDWv4Q/ddxVrp88Fnckq7YCVSyuigaNc4S1HwhHGw5LsSBamnawcHTD 8uQ12Ac5YFUxLIbuY/IcqIF6aIl5emLnVvRFMnrh0OCYqwballu9kbBfvmwSOpoRG7w7 bHAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="O/GWG1vm"; 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=fail (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 y19si15228284uan.172.2019.07.31.13.41.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 13:41:03 -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=fail header.i=@linaro.org header.s=google header.b="O/GWG1vm"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsvPC-00087S-Ra for patch@linaro.org; Wed, 31 Jul 2019 16:41:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60731) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsvMf-00049A-1E for qemu-devel@nongnu.org; Wed, 31 Jul 2019 16:38:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsvMe-0003Md-5y for qemu-devel@nongnu.org; Wed, 31 Jul 2019 16:38:24 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:41503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsvMe-0003Lv-0w for qemu-devel@nongnu.org; Wed, 31 Jul 2019 16:38:24 -0400 Received: by mail-pg1-x544.google.com with SMTP id x15so22297019pgg.8 for ; Wed, 31 Jul 2019 13:38:23 -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=6IeFtwkeZbBPVLT5Rmllb3ExAsBhlKcdIq9EZhAeEOQ=; b=O/GWG1vm0GYyFApT/JUxE06dQDg+BEu9I0fKzi/ASPf07ZtfGyq9opJRL4dUai0mux eU7ruZSdfVcqEFARLpd/rSUmTwckk6nwb8nEx09lZUMw99HBKO7ZeodlseN5m6Rsr3uH NrJCjDhHmDoLZ0APwwhUsUPv0BXorZcsVjzb4X8rp0Vub3WO2fZmfMpt/MeMbSi39hYo zPFdo3VDUCJGRtpohDA9p0gKBcFPkEJE5pFVj5dQBsuncOG22hO78T6DZi9w8HYcIYLh 11FEbIo2DltQXa5cvKMr0mba9j8LftBQuF1tPblPELqpKDxUdJa+QXO4ifV0+230SU8d fR6Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6IeFtwkeZbBPVLT5Rmllb3ExAsBhlKcdIq9EZhAeEOQ=; b=eZQwUPSSvEfpXborS0NKu4xQ32gao7VmtrUXeK5i60z8iUc7l9S0MjK3iCW59JVnoI PQadLKPmDRRX2zVQVqRgeE0aYaAx8IT6IwQUTlerPx7+wznCXRoITKq5tkUOWz8Mgauy aExMzo5Qbz6Lh4Lwm0jkr7EyFwHO1DOMVpuEoegL62OsmXqktay/6mspx/9GbZQ3XX96 U2itGC4hUtgtyf4TqugoQuwG/iDQF7KTMC4+lV+dO6xmz8lC4207Fx5nq3oV1chdY2sV yCLxrNm/piWiom6ckKU9OKkzZVX70ziteWLdQ3wucoV9bYEVgd7RhxX/q+SvqTqFk2yu Z8Lg== X-Gm-Message-State: APjAAAUcGYrwSH4wvZL0exBOdPcD5hNUBCVgj+uGgoTiUVz4xuzUNGsu Ev+Q71+tyEsT7/T8lLrs7JF5hwoLGUo= X-Received: by 2002:a62:2582:: with SMTP id l124mr48886230pfl.43.1564605502801; Wed, 31 Jul 2019 13:38:22 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id g4sm84054164pfo.93.2019.07.31.13.38.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 13:38:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 31 Jul 2019 13:37:47 -0700 Message-Id: <20190731203813.30765-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731203813.30765-1-richard.henderson@linaro.org> References: <20190731203813.30765-1-richard.henderson@linaro.org> 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::544 Subject: [Qemu-devel] [PATCH v2 06/32] target/arm: Define isar_feature_aa64_vh 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, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 94c990cddb..e6a76d14c6 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -3573,6 +3573,11 @@ static inline bool isar_feature_aa64_sve(const ARMISARegisters *id) return FIELD_EX64(id->id_aa64pfr0, ID_AA64PFR0, SVE) != 0; } +static inline bool isar_feature_aa64_vh(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, VH) != 0; +} + static inline bool isar_feature_aa64_lor(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, LO) != 0;