From patchwork Fri Oct 10 16:03:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 38624 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12BFE202DB for ; Fri, 10 Oct 2014 16:28:15 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf2364891lam.0 for ; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=LkkxSPKTljX4i8EZp9mIV4TuG1GwNCW55PclEMjHP6I=; b=N4oUbduOcckTYTiFv41JaB64VEHpGMZ7gfc72jERGgMWzl/k1/ZuwRvHWfOWxmVuPP +vDjzUZiNMQDlTlcyxGpLBjlNSkqwS1szZePw1O37mP5uiewZBs/KIqObIj+kPnpn6dg U+iBHAFLoBjfHr1l4t08k8VQqiswzNvOvQkpNiztKx4Aqd2YB1F3659OG1rEwJdmxsDM 4DAnCRLNLM7Vr+lvl6D0hSfO0vMgQNu4aQDPhE5PgrYX1ZwGDeh7xKnoHUJtVIiQ5cis T05k3xxiMqbIZbZsgXCxXh5uUpbcPaWhdw0bgsgeil+G+t8f6vL+F+CAjlCZYmqLDVO+ 2W0A== X-Gm-Message-State: ALoCoQnsruCN9UFfEHCXLg1R0KYRtd1prkAKhw7VITXOrNdiqFodiWGtqJV6uUaw5Hp5JG3VSQLk X-Received: by 10.112.34.52 with SMTP id w20mr619399lbi.5.1412958494858; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.166 with SMTP id t6ls333109lat.20.gmail; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) X-Received: by 10.152.88.97 with SMTP id bf1mr6094041lab.58.1412958494584; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id s2si5554082lag.22.2014.10.10.09.28.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so3407683lbj.17 for ; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) X-Received: by 10.112.190.69 with SMTP id go5mr5933962lbc.32.1412958494456; Fri, 10 Oct 2014 09:28:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp460139lbz; Fri, 10 Oct 2014 09:28:13 -0700 (PDT) X-Received: by 10.140.30.36 with SMTP id c33mr9748890qgc.69.1412958493037; Fri, 10 Oct 2014 09:28:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 9si11737412qas.84.2014.10.10.09.28.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:28:13 -0700 (PDT) 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; Received: from localhost ([::1]:49667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xcd36-0004iW-4C for patch@linaro.org; Fri, 10 Oct 2014 12:28:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XccgC-0007Xu-Bm for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:04:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xccg6-0008BU-NW for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:04:32 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:52164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xccg6-0008BO-IN for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:04:26 -0400 Received: by mail-oi0-f47.google.com with SMTP id a141so7291201oig.20 for ; Fri, 10 Oct 2014 09:04:26 -0700 (PDT) X-Received: by 10.182.79.65 with SMTP id h1mr3177363obx.53.1412957066184; Fri, 10 Oct 2014 09:04:26 -0700 (PDT) Received: from gbellows-linaro.bellowshome.net (99-179-1-128.lightspeed.austtx.sbcglobal.net. [99.179.1.128]) by mx.google.com with ESMTPSA id d6sm5382455obt.12.2014.10.10.09.04.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:04:25 -0700 (PDT) From: Greg Bellows To: qemu-devel@nongnu.org, peter.maydell@linaro.org, serge.fdrv@gmail.com, edgar.iglesias@gmail.com, aggelerf@ethz.ch Date: Fri, 10 Oct 2014 11:03:43 -0500 Message-Id: <1412957023-11105-33-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1412957023-11105-1-git-send-email-greg.bellows@linaro.org> References: <1412957023-11105-1-git-send-email-greg.bellows@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.47 Subject: [Qemu-devel] [PATCH v6 32/32] target-arm: add cpu feature EL3 to CPUs with Security Extensions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: greg.bellows@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Fabian Aggeler Set ARM_FEATURE_EL3 feature for CPUs that implement Security Extensions. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- target-arm/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 8ba72ed..fa12602 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -601,6 +601,7 @@ static void arm1176_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); set_feature(&cpu->env, ARM_FEATURE_CACHE_DIRTY_REG); set_feature(&cpu->env, ARM_FEATURE_CACHE_BLOCK_OPS); + set_feature(&cpu->env, ARM_FEATURE_EL3); cpu->midr = 0x410fb767; cpu->reset_fpsid = 0x410120b5; cpu->mvfr0 = 0x11111111; @@ -687,6 +688,7 @@ static void cortex_a8_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); + set_feature(&cpu->env, ARM_FEATURE_EL3); cpu->midr = 0x410fc080; cpu->reset_fpsid = 0x410330c0; cpu->mvfr0 = 0x11110222; @@ -754,6 +756,7 @@ static void cortex_a9_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_VFP_FP16); set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); + set_feature(&cpu->env, ARM_FEATURE_EL3); /* Note that A9 supports the MP extensions even for * A9UP and single-core A9MP (which are both different * and valid configurations; we don't model A9UP). @@ -821,6 +824,7 @@ static void cortex_a15_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS); set_feature(&cpu->env, ARM_FEATURE_CBAR_RO); set_feature(&cpu->env, ARM_FEATURE_LPAE); + set_feature(&cpu->env, ARM_FEATURE_EL3); cpu->kvm_target = QEMU_KVM_ARM_TARGET_CORTEX_A15; cpu->midr = 0x412fc0f1; cpu->reset_fpsid = 0x410430f0;