Message ID | 20200626033144.790098-2-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp102841ilg; Thu, 25 Jun 2020 20:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXW8i/4Cc59e8X2yKAbGZRvj13duVm5lXESwoh9FlIzerSjDUs3CBXib9VPiEDarr2SjZs X-Received: by 2002:a25:d1ce:: with SMTP id i197mr1788817ybg.296.1593142359380; Thu, 25 Jun 2020 20:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593142359; cv=none; d=google.com; s=arc-20160816; b=IYebz9UfIcfFiyKBXLYHD2Yoy4XUyYpvmbmwS0Ebg0RBzMr2hLIsWSCWUwnXWFYcxG P13VEERZK9CiNhJS9hoJ7XBt+NHNiq/7UqUd1aT2duWEvY812RSPNJFQ6KEnMW3MbGuG i+oxsp6HurFr8MEqct3NsX1KuG97e9I9XR/nF05RjfgoTcsAjHABE2fHZU4JSbAuWZjv 4k41LRdp84uI7ubA7DTzUy755BMTsoKkduXebhV1eiQxm85h7WHLVxBrJM9BQyq04LNS lOQnccA8hWoJUOOT6Jk6c+xnj4GlfNkba/vrv7R9FnQ+X9fIkWHcvGfL69m200iAkRtT /avQ== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Wq85XPdwWHXx5G5Rb/Fdn/pZNR+DRC8JYM81MVGPwCQ=; b=Uuqaq1pcp64IMgdqhbCLRDIeel2RFGxLN16IvYyzo7PJpPexCHuKWqDllmdqszpzww c2rLU410nZSYYIJRSuM1/aX3g5Tp8+v40tDTACjNxDdVdrUz8Vg+29SKvcrmP7Of2SnG Fa4FmZYeISPr8yGNq/TvbqII+AwMJwA0pk4+S4rNz9WbmRCNKzyfp7MHhusPnuwfPSmG P4j5NZ3avaTSn3zyywJTxYzrRMzICM+qauchscYHLePluB6mi146b2xXC2faWzFJW2Hh lR7Jg7JdltNxWsIe79bVjMU2uSBw9Jo/PpI6fykLUgyuABoQuIHKzbKuy5BFmO4UtyiH OgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GY1hZqsZ; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y7si27327665ybe.344.2020.06.25.20.32.39 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jun 2020 20:32:39 -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=GY1hZqsZ; 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]:51586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1jof6U-0007hC-Ps for patch@linaro.org; Thu, 25 Jun 2020 23:32:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1jof5j-0007fi-C3 for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:31:51 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:35890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1jof5h-0001gr-JV for qemu-devel@nongnu.org; Thu, 25 Jun 2020 23:31:51 -0400 Received: by mail-pf1-x433.google.com with SMTP id 207so3866178pfu.3 for <qemu-devel@nongnu.org>; Thu, 25 Jun 2020 20:31: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=Wq85XPdwWHXx5G5Rb/Fdn/pZNR+DRC8JYM81MVGPwCQ=; b=GY1hZqsZ2Uhq6t5lk+3tsRrGIU09JoB+OlWnLtzuphtZuv57jzvyclJFz7R1QiJ54D G3hWszSHfLONCC0+nPFMWelAlh7ibX1U9m2yTZh5KFSSa3AxjxOy9v690IPBe+bl3dPZ pylSdNsejgEg2Yj7k1zA94E+YJXxhm7C7uHyCVikNEaxaCxYLIlvHc51ZUJ5mlShH1on b0EV81n8siF7Z1ICRwHnHRUVleXAi8uUaPgwl4wYsr3lGUX6+J3XE19TL42LFFUQw68Q XX8uhs1RFqJJ8Sn9hAfbao6iozgZBCj1IHziSlxuwAo8ro2pcv7u5K4GUM9XUBREKYab H3Ww== 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=Wq85XPdwWHXx5G5Rb/Fdn/pZNR+DRC8JYM81MVGPwCQ=; b=JapPfHFLGiPxEooRpkn0mvkcNpe6QOvdbWF2iA8g03IbYTHduTihdCLiNs7XgFvMf8 DH0GIyBtTxQpRPKzNm4e/gowrUpILy1H6tiXDGC9cn2Oj9riFtonvgCw4SMajzaJIeij 1ReT+6yvNP6ugHN9kT0HFGcXF61qycVyQgzecu9vkv6c4KAFUKGZtiZeUmMn7+iTXGwd u0cgBAdJmdDx317mFhu+XA+4L8xh099DUCX2uIO9ahIw6XP4/PWsCq//ZU8I2u+N/ld3 JmVF/vgBu8GLoDiELLDZyoBlSwVwI/5V7sevub9zM92ghGtVJ8N5fKX7JJfZbfmqjozx 8XAg== X-Gm-Message-State: AOAM530qKCM74sgA04AzxKnEpTQxWhpcKoKqHzwN9rYnA09CCRMRgHvt nr4th4t8FcA040qvIe6aBYMHFPh9elA= X-Received: by 2002:a63:7c56:: with SMTP id l22mr898001pgn.127.1593142307849; Thu, 25 Jun 2020 20:31:47 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id y27sm1605256pgc.56.2020.06.25.20.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 20:31:47 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v9 01/46] target/arm: Add isar tests for mte Date: Thu, 25 Jun 2020 20:30:59 -0700 Message-Id: <20200626033144.790098-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626033144.790098-1-richard.henderson@linaro.org> References: <20200626033144.790098-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, david.spickett@linaro.org, steplong@quicinc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Implement ARMv8.5-MemTag, system mode
|
expand
|
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index cf66b8c7fb..ff70115801 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -3814,6 +3814,16 @@ static inline bool isar_feature_aa64_bti(const ARMISARegisters *id) return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, BT) != 0; } +static inline bool isar_feature_aa64_mte_insn_reg(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, MTE) != 0; +} + +static inline bool isar_feature_aa64_mte(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, MTE) >= 2; +} + static inline bool isar_feature_aa64_pmu_8_1(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64dfr0, ID_AA64DFR0, PMUVER) >= 4 &&