Message ID | 20190204132126.3255-5-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3910589jaa; Mon, 4 Feb 2019 05:22:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sqsDbkC/3ZrV52kKzZd0W4NJqGh3p1CYvyLpcmFEOZUzEBp5ihHEQ2+5NBYfV47NeKrk0 X-Received: by 2002:a81:a988:: with SMTP id g130mr46927055ywh.307.1549286533083; Mon, 04 Feb 2019 05:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549286533; cv=none; d=google.com; s=arc-20160816; b=owuDouHve5bvF4IzTij/LFbi1enyBpsRNCrOUda0JHUGPCTfbtD9I3DT8mP4fvRMuo 0/kTiTIrFq7AJR+7CwsTj3+Cclol0IkGcwVp9+4Bp1EdrBlBKIk9xm/bYpkq3JQQCdsf OtebELcat88SRMH7O0Fh5V0liFd8LFbJeyDiZduTA1ghBX5UP0kLks93TuUDRsIto7Aq Ma5QH/xA5pmxa8BTtJozcmVI9nWHegTNP90hSMKRI2DEuGZbIfIYCIETqjpMn4V/cAzS 57BXxNvATE8Ji8uZgMufGConaJxYghndhmapomSVBgosbK1fvK3xrxok5yM3LxfY29g4 QdbQ== 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=o7B8u++1XxJnw+EQd/QpRGtPpytg+GMjNgKHuSZu55w=; b=KkupoN/xWHLLCV7F1Q3p5CB0iEcN/AUjrQUevobUPBW0Y9OG1Ux+2/1Ib/5Q4GZNT/ RwJt+3PR/VoGlgKOf8+vQabcruLr6MblovukThROMD33JMqnuac4jniEDY8LE0efMNVV quNoS4Kar8SeUlK3AN9Kq8afcAaWlGzYiRNTpV41zAtneW/PkM04NNS3zDfpO69VpuAy GfZwgbtMazmbpgu1rUxphkrljpQj8oTBgH5aGIJ0ya47liGqZri7TuHRuKLCczFiQ9F+ jgtiVog3/CxCKkyad5WcpAS2hRvZQPmOfEiPW79noYlh22ozdLbpS0wv6XgVOdI2f9Pt gSuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=L4Oe+zhh; 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 x11si30946ywl.352.2019.02.04.05.22.12 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 04 Feb 2019 05:22:13 -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=fail header.i=@linaro.org header.s=google header.b=L4Oe+zhh; 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 ([127.0.0.1]:42697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1gqeCS-00012I-FA for patch@linaro.org; Mon, 04 Feb 2019 08:22:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gqeBz-000110-J2 for qemu-devel@nongnu.org; Mon, 04 Feb 2019 08:21:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gqeBy-0006Uf-1A for qemu-devel@nongnu.org; Mon, 04 Feb 2019 08:21:43 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:36398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1gqeBx-0006TC-Nd for qemu-devel@nongnu.org; Mon, 04 Feb 2019 08:21:41 -0500 Received: by mail-wm1-x343.google.com with SMTP id p6so13435659wmc.1 for <qemu-devel@nongnu.org>; Mon, 04 Feb 2019 05:21: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=o7B8u++1XxJnw+EQd/QpRGtPpytg+GMjNgKHuSZu55w=; b=L4Oe+zhhfoz6pVnxYlj38qIQhBBOjHIYnqBJ/DlkxJnMWx6YznVZwBcFBOk4nlpvlL E2pQqV4xtofwsXqM7ZdZxJEEDgd3UYv+o2++wE9nPFSK+IyyqDDBJ1XV3Dj6g2qcZXPb WgY6K1y+Mop7fPvRgnLQa6qtSwmDXFzywZwRg= 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=o7B8u++1XxJnw+EQd/QpRGtPpytg+GMjNgKHuSZu55w=; b=TnZqwXBDRhVqoj0dR0cBaCWbbuX3mPJsHqZIXvuTEUm7TQFBB3LG9qD3k83NmAl3ND JwuxPIZF95z843Cy5i8YFVrOj7JnP+YfbOZdC5/jIPVkxAM+XzpfHZHEn0cHdTAyY/om AHGpqdKHkynpWl8HfNghYozbI6pz6uSBwTndq10uNXHqa2CsH+jOlev1wASL7g1CamOn Ma46EAiysBzlPuyX6b/Cgft1m+b4h7OwlHl/i5Iz1XDKGix1r/hsAaP2z5UscITorxBQ oyqT7eDcSf4PK482msy1KD1TLXQU+/3XrmPBEFuWTullZm5I5IP/LhHwE7z7PhYDxGAA /QhQ== X-Gm-Message-State: AHQUAuaembcjiSXX6rxLFhUZ84weCIKv35YsvN45QJmH5h10/V4l0eWW ywnOB3alFchEXYoCvXZBrpSu1nzWs5435g== X-Received: by 2002:a7b:c405:: with SMTP id k5mr3672560wmi.2.1549286499579; Mon, 04 Feb 2019 05:21:39 -0800 (PST) Received: from cloudburst.twiddle.net (host81-133-38-158.in-addr.btopenworld.com. [81.133.38.158]) by smtp.gmail.com with ESMTPSA id l20sm30371534wrb.93.2019.02.04.05.21.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Feb 2019 05:21:38 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Mon, 4 Feb 2019 13:21:26 +0000 Message-Id: <20190204132126.3255-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190204132126.3255-1-richard.henderson@linaro.org> References: <20190204132126.3255-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH v2 4/4] target/arm: Enable TBI for user-only 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 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 TBI for user-only | expand |
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 3874dc9875..edf6e0e1f1 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -200,6 +200,12 @@ static void arm_cpu_reset(CPUState *s) env->vfp.zcr_el[1] = cpu->sve_max_vq - 1; env->vfp.zcr_el[2] = env->vfp.zcr_el[1]; env->vfp.zcr_el[3] = env->vfp.zcr_el[1]; + /* + * Enable TBI0 and TBI1. While the real kernel only enables TBI0, + * turning on both here will produce smaller code and otherwise + * make no difference to the user-level emulation. + */ + env->cp15.tcr_el[1].raw_tcr = (3ULL << 37); #else /* Reset into the highest available EL */ if (arm_feature(env, ARM_FEATURE_EL3)) {