Message ID | 20181207103631.28193-26-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp346414ljp; Fri, 7 Dec 2018 02:52:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/UYt+dA2zIOBGgDr3G6lNmxCrFqWsgZvp7cO7issV0ux8bavNDYrdkLzaLU3jpY14HrUQjt X-Received: by 2002:aed:2d26:: with SMTP id h35mr1454605qtd.373.1544179929616; Fri, 07 Dec 2018 02:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544179929; cv=none; d=google.com; s=arc-20160816; b=S9EOW6Ehg1JiDfBAzoV5o5TBUe5dahoocrrD3BCs9NIPguFoWmxcULA2QKohPU7UQf eN7iAPfC0HfNyQsSSI4eYtpXGyK8kS1dfq4RJaDAVHgbKFjKSVAn4UhaN67EB1CtTsmf RblkSKAV6lMcfLkvOPiTyVYEmFTiYJYBZn82fxcAzdMgy+iDPxZKtu7uddQ+Ox79UzNP 9HcLCozEc0s819Y5SQkzuPEMxJoIvdtt6Lre2vRfMemyZK1Rg4ffjRIGdWym0UOoEALL iwWi29Q8ZK7C1+Ml4HehrNPplCVIta8lIGN/sSZxdKrljxWMoZZ6javB3D3Ik+KJfsaX lzwQ== 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=5lV189kkOB6fne0CCcwUJT1P8TEOV3BpZfvcoTnPXCM=; b=VaL+KppxigcaBYV67x6exT59Uu1ION6ET1fAhg4gN305qjPeE4x9bMbiuUfiaM0RAv leClCFH6NAxBq8JUdeVtOtTM1IQjvQOL2pehccTCLqObQ0LPGCsobO3uiMSdmEKzb8Ny SIt8hxSCOYs2xSU3VrvB2zxgzY8CLHqsmz9/lcyvakjhK8WCO2Dn4rtArxftKM725of/ 7WTtbJMU5/7uyYZueG4Jw/bZB1YD4+EmkNjo+dCMZvVvkDf6FCYvP0oHLxJpqaUQMDXN IVVufE4z+ergPta2Sc2faZRVDnUdHipqC1IqIX3tsZhDOMqEyj0dgw40luI27mAqz1kJ jrZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=EUcDoANT; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 52si2004088qvr.211.2018.12.07.02.52.09 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Dec 2018 02:52:09 -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=EUcDoANT; 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]:45330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1gVDjp-00014Y-CT for patch@linaro.org; Fri, 07 Dec 2018 05:52:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gVDVW-00007P-5a for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gVDVT-00083Y-3E for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:18 -0500 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:36579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gVDVS-00082D-Si for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:14 -0500 Received: by mail-ot1-x344.google.com with SMTP id k98so3366346otk.3 for <qemu-devel@nongnu.org>; Fri, 07 Dec 2018 02:37:13 -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=5lV189kkOB6fne0CCcwUJT1P8TEOV3BpZfvcoTnPXCM=; b=EUcDoANTxOlK54eUhc+sTv+udh2nYitot4t9Etf7IQRueIYEFNRns8PX2UUNpsZWQd a7fdAdEj1bS1SvNWNd/yD6ZGH/7EWW/QXM0jcgRZoWUg9bnlkW5ojHFj5jZ8jGRS6004 jcYM2wX4tEHhMUXMKeZGioE11DwTDIRrKx4p8= 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=5lV189kkOB6fne0CCcwUJT1P8TEOV3BpZfvcoTnPXCM=; b=s7pNrEtWeCd04ilC536sMXObVzgKgEAGoxSH4TgW6EQCVLcdbE7aGXBxQJUEE38LpE F2Ud6XiVvB1zacmyWM7V57fRnBsReBfEfFBAolr0lr+sPEXlu+DYUfusdK0IgmtucLqu VRhalyQ6QJuHEAxubILAWHxi6jv3LrS+bLy4YCqWOx6sDkihIWK8zip+XjdWbey2kdQJ YMRkc4YO7X5pwZzcfNCGnAtG/jt5HinoiBOBozWD4yOKkkfB1q3OquBvhkcGBct4wofA 4DmtaJp/yQxM+StrapM1+B9H9vDEt9al4gfNl1hXzZwAlMQMa9c5H8Dn/FI5L2cnBAjP cRvA== X-Gm-Message-State: AA+aEWYscz4iF7WKKytIZ2oZ/rF8KPLry3cB0pecYBaiq3YGkEtS0veN lws1yjqhHkD+d32DwuWgu2hlLeisPSI= X-Received: by 2002:a9d:a2e:: with SMTP id 43mr1006720otg.8.1544179032363; Fri, 07 Dec 2018 02:37:12 -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.37.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 02:37:11 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 7 Dec 2018 04:36:30 -0600 Message-Id: <20181207103631.28193-26-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::344 Subject: [Qemu-devel] [PATCH 25/26] target/arm: Enable PAuth for user-only, part 2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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, ramana.radhakrishnan@arm.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.3-PAuth
|
expand
|
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 0b185f8d30..bc2c9eb551 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -162,6 +162,12 @@ static void arm_cpu_reset(CPUState *s) env->pstate = PSTATE_MODE_EL0t; /* Userspace expects access to DC ZVA, CTL_EL0 and the cache ops */ env->cp15.sctlr_el[1] |= SCTLR_UCT | SCTLR_UCI | SCTLR_DZE; + /* Enable all PAC keys. */ + env->cp15.sctlr_el[1] |= SCTLR_EnIA | SCTLR_EnIB; + env->cp15.sctlr_el[1] |= SCTLR_EnDA | SCTLR_EnDB; + /* Enable all PAC instructions */ + env->cp15.hcr_el2 |= HCR_API; + env->cp15.scr_el3 |= SCR_API; /* and to the FP/Neon instructions */ env->cp15.cpacr_el1 = deposit64(env->cp15.cpacr_el1, 20, 2, 3); /* and to the SVE instructions */
FIXME: We should have an attribute that controls the EL1 enable bits. We may not always want to turn on pointer authentication with -cpu max. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.2