From patchwork Fri Dec 7 10:36:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153110 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp336933ljp; Fri, 7 Dec 2018 02:39:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+j34unCootQjYBjdF5Oirfwf6dMeOWuvsz6J849iwZ1WJE+d1z+eMpvSkt8zsD4nNRwHs X-Received: by 2002:a37:11dd:: with SMTP id 90mr1292764qkr.212.1544179179602; Fri, 07 Dec 2018 02:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544179179; cv=none; d=google.com; s=arc-20160816; b=IglOeEPFV5FXBh5K3VKnTDDsA7Z/xJ2z/KLMqsgofE896HXQogZvD5gwdbcoJepmU7 FBGJf9wVEAE9bYsL3un7XwlKLB/KZOlrklMw5/L9/A2xfBYfyuMmdruonEvL6BhFOzvl ryLIgdcgtQZ1EA95y6lD/dtp80XiEq3W/w5B9wp1OEus7duDkrnTMqmrj4r16Kk0R6Rf OUToTycVbQunFfjT/mJhF/kKWVRQq/t+8xstm/vL0cPz4MxZN51o0TNvjAAuZ/Ka57hA qV22cix0tvQcazxSk1rNznAYwXgT0II2Jp3h9Ie8sSfUHFDAyUdfqm+E9XCMcFcXImXW gktA== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=1zHtqPqQuOVDqUCs4QxzsY6N+zhmBLTZdXVbBYN1Xvk=; b=Ld7hwMPSm7zN+hEioXVV7HgU5z87k1rblpJsVEgaH5U2cZtCzNqhALylDpJ7Z/4SG+ u3nRq6Q9IQw479RpOawx4gjRv9lRJM2r2skH8WqKaZztRiZHYmmEx9VPaLZ6sQCLw1UU 840oVvqW6UmVi4kdoOXNtGZeox+99sC9uAtsP0HoZEji0O3OTVYU1IN75er4e9Oqrmaw AA43JC+HAzBPttz4J+ijy4dwTzBybEasXZn0FtbF8JQBkrr+wE7agEKPJUG2Cmcj3kxz WVCEP9pseGaEwrbG1eLpK1cOyvraNLT+Og8KRi5XCuxUzWtSEDUr6koczP9UfjyW0KDF l/Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="L+I/Y/lH"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z63si1571732qkc.262.2018.12.07.02.39.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Dec 2018 02:39:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="L+I/Y/lH"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:45257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDXm-0003bV-UD for patch@linaro.org; Fri, 07 Dec 2018 05:39:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDUv-0007xm-Pw for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVDUu-0007DG-Gc for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:41 -0500 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]:40167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVDUu-0007Cr-Bi for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:40 -0500 Received: by mail-oi1-x241.google.com with SMTP id t204so2988754oie.7 for ; Fri, 07 Dec 2018 02:36:40 -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:in-reply-to:references; bh=1zHtqPqQuOVDqUCs4QxzsY6N+zhmBLTZdXVbBYN1Xvk=; b=L+I/Y/lHiCMpqsGSRj7LuBUKiWWLolBC0Lloy5Bl/MlAwHj4hrXlasCJh1ogY+xjBq 8t9NmbHZLAjSrPUQrtGBnGGrjK8PC0hTj9VTaNzazesyrQTzKN29A31DqXoA6A3v5tkp /R9UPxttkzGs00ZwiTEH7ok2+w6ab2GMcq+QQ= 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; bh=1zHtqPqQuOVDqUCs4QxzsY6N+zhmBLTZdXVbBYN1Xvk=; b=YkuVGP5aJVwZsBiBRkLUfs6k+DbzTVydTv/CarSkVUGDeE5QajjgQsaCEx5iq7O3uW sHtMTTYIKSVART/QCBy5/NZNOuLNT/nMvXlSZ8t1PX8KKMoHNHTxZJPIJqFzSknvo7Dw 9Tm04HHPa0DBhnz7LmQjAfegBvfh0nfQ4cp+LLtykDgViSZMz4U2AWwuTuzousZeppaB ymtJfSC6eZTcF9hnHUZdm0Ou/HdaoglpjUoDuPQzC6RgSVD5eCCcr1EQIvTqf9PrB9lA MAPQz/OWzmPIZZ5avygbXpCjDolLqm8BnAhFP+5VpqoUT+V4gAXRu8KAJG+Wp0dkWpMm 16qg== X-Gm-Message-State: AA+aEWYHE3rrV9MvDI2oBBQXOBoVLFDc7aorlfPy5N2rk1oFA8XFyX6X vsdGTbVPfHdiOXeFeNc26w2HGF+FPio= X-Received: by 2002:aca:5406:: with SMTP id i6mr948508oib.344.1544178999338; Fri, 07 Dec 2018 02:36:39 -0800 (PST) Received: from cloudburst.twiddle.net (172.189-204-159.bestel.com.mx. [189.204.159.172]) by smtp.gmail.com with ESMTPSA id c19sm2037594otl.16.2018.12.07.02.36.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 02:36:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 7 Dec 2018 04:36:07 -0600 Message-Id: <20181207103631.28193-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181207103631.28193-1-richard.henderson@linaro.org> References: <20181207103631.28193-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::241 Subject: [Qemu-devel] [PATCH 02/26] target/arm: Add SCTLR bits through ARMv8.5 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, ramana.radhakrishnan@arm.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Post v8.4 bits taken from SysReg_v85_xml-00bet8. Signed-off-by: Richard Henderson --- target/arm/cpu.h | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) -- 2.17.2 Reviewed-by: Peter Maydell diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 0766e32a1b..80d65866c6 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -984,12 +984,14 @@ void pmccntr_sync(CPUARMState *env); #define SCTLR_A (1U << 1) #define SCTLR_C (1U << 2) #define SCTLR_W (1U << 3) /* up to v6; RAO in v7 */ -#define SCTLR_SA (1U << 3) +#define SCTLR_nTLSMD_32 (1U << 3) /* v8.2-LSMAOC, AArch32 only */ #define SCTLR_P (1U << 4) /* up to v5; RAO in v6 and v7 */ +#define SCTLR_LSMAOE_32 (1U << 4) /* v8.2-LSMAOC, AArch32 only */ #define SCTLR_SA0 (1U << 4) /* v8 onward, AArch64 only */ #define SCTLR_D (1U << 5) /* up to v5; RAO in v6 */ #define SCTLR_CP15BEN (1U << 5) /* v7 onward */ #define SCTLR_L (1U << 6) /* up to v5; RAO in v6 and v7; RAZ in v8 */ +#define SCTLR_nAA (1U << 6) /* when v8.4-LSE is implemented */ #define SCTLR_B (1U << 7) /* up to v6; RAZ in v7 */ #define SCTLR_ITD (1U << 7) /* v8 onward */ #define SCTLR_S (1U << 8) /* up to v6; RAZ in v7 */ @@ -997,35 +999,51 @@ void pmccntr_sync(CPUARMState *env); #define SCTLR_R (1U << 9) /* up to v6; RAZ in v7 */ #define SCTLR_UMA (1U << 9) /* v8 onward, AArch64 only */ #define SCTLR_F (1U << 10) /* up to v6 */ -#define SCTLR_SW (1U << 10) /* v7 onward */ -#define SCTLR_Z (1U << 11) +#define SCTLR_SW (1U << 10) /* v7, RES0 in v8 */ +#define SCTLR_Z (1U << 11) /* in v7, RES1 in v8 */ #define SCTLR_I (1U << 12) -#define SCTLR_V (1U << 13) +#define SCTLR_V (1U << 13) /* AArch32 only */ +#define SCTLR_EnDB (1U << 13) /* v8.3, AArch64 only */ #define SCTLR_RR (1U << 14) /* up to v7 */ #define SCTLR_DZE (1U << 14) /* v8 onward, AArch64 only */ #define SCTLR_L4 (1U << 15) /* up to v6; RAZ in v7 */ #define SCTLR_UCT (1U << 15) /* v8 onward, AArch64 only */ #define SCTLR_DT (1U << 16) /* up to ??, RAO in v6 and v7 */ #define SCTLR_nTWI (1U << 16) /* v8 onward */ -#define SCTLR_HA (1U << 17) +#define SCTLR_HA (1U << 17) /* up to v7, RES0 in v8 */ #define SCTLR_BR (1U << 17) /* PMSA only */ #define SCTLR_IT (1U << 18) /* up to ??, RAO in v6 and v7 */ #define SCTLR_nTWE (1U << 18) /* v8 onward */ #define SCTLR_WXN (1U << 19) #define SCTLR_ST (1U << 20) /* up to ??, RAZ in v6 */ -#define SCTLR_UWXN (1U << 20) /* v7 onward */ -#define SCTLR_FI (1U << 21) -#define SCTLR_U (1U << 22) +#define SCTLR_UWXN (1U << 20) /* v7 onward, AArch32 only */ +#define SCTLR_FI (1U << 21) /* up to v7, v8 RES0 */ +#define SCTLR_IESB (1U << 21) /* v8.2-IESB, AArch64 only */ +#define SCTLR_U (1U << 22) /* up to ??, v8 RES1 */ #define SCTLR_XP (1U << 23) /* up to v6; v7 onward RAO */ +#define SCTLR_SPAN (1U << 23) /* v8.1-PAN */ #define SCTLR_VE (1U << 24) /* up to v7 */ #define SCTLR_E0E (1U << 24) /* v8 onward, AArch64 only */ #define SCTLR_EE (1U << 25) #define SCTLR_L2 (1U << 26) /* up to v6, RAZ in v7 */ #define SCTLR_UCI (1U << 26) /* v8 onward, AArch64 only */ #define SCTLR_NMFI (1U << 27) -#define SCTLR_TRE (1U << 28) -#define SCTLR_AFE (1U << 29) -#define SCTLR_TE (1U << 30) +#define SCTLR_EnDA (1U << 27) /* v8.3, AArch64 only */ +#define SCTLR_TRE (1U << 28) /* AArch32 only */ +#define SCTLR_nTLSMD_64 (1U << 28) /* v8.2-LSMAOC, AArch64 only */ +#define SCTLR_AFE (1U << 29) /* AArch32 only */ +#define SCTLR_LSMAOE_64 (1U << 29) /* v8.2-LSMAOC, AArch64 only */ +#define SCTLR_TE (1U << 30) /* AArch32 only */ +#define SCTLR_EnIB (1U << 30) /* v8.3, AArch64 only */ +#define SCTLR_EnIA (1U << 31) /* v8.3, AArch64 only */ +#define SCTLR_BT0 (1ULL << 35) /* v8.5-BTI */ +#define SCTLR_BT1 (1ULL << 36) /* v8.5-BTI */ +#define SCTLR_ITFSB (1ULL << 37) /* v8.5-MemTag */ +#define SCTLR_TCF0 (3ULL << 38) /* v8.5-MemTag */ +#define SCTLR_TCF (3ULL << 40) /* v8.5-MemTag */ +#define SCTLR_ATA0 (1ULL << 42) /* v8.5-MemTag */ +#define SCTLR_ATA (1ULL << 43) /* v8.5-MemTag */ +#define SCTLR_DSSBS (1ULL << 44) /* v8.5 */ #define CPTR_TCPAC (1U << 31) #define CPTR_TTA (1U << 20)