From patchwork Thu Oct 30 21:28:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 39938 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 123FA2405B for ; Fri, 31 Oct 2014 16:19:14 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf4321322lab.9 for ; Fri, 31 Oct 2014 09:19:13 -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:cc: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=elRYBG120UZQMNaNHD7xyQfKf36D3JOZDVYmOFyCMsM=; b=h83t99VM7d03gzcM63isRowesT0NXLo/Z9kTpHKelSsoL6J6C0e9T9r21aTlIFQ0yt HNyjLy9BLYnmdIfG6FeiaSdnVTQKgOwX0Wzb+bR7JZK9C7LEbPp6fsuDKHLNsRoAjaJn efv9NK3GOSW46pbReX6CaLdtEwpc5ujLV1CVGie2QShV2xNxdtscE322uyfiI8HUqRfB QGy8Z6wZy0MuUbxbse8QR6pzdQGCbn/BWjH/HcpV+jCWfIpjriuY1Me04SGoNvT8T1i1 +s1VO2QXefFvrNeknOn481N4BPC1D1jsBVFF8OjYtwE1R8FtiBZDUN3hKi2aXJ/PArtD gaFA== X-Gm-Message-State: ALoCoQnaEHUimg3rVg7pXpT7+mpnMdr0tp5fwaePxlvdfRiVAMyocFAhRVPbK+N9JqyzlAIU4n0v X-Received: by 10.180.93.35 with SMTP id cr3mr808715wib.2.1414772353398; Fri, 31 Oct 2014 09:19:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.129 with SMTP id t1ls534204lag.53.gmail; Fri, 31 Oct 2014 09:19:12 -0700 (PDT) X-Received: by 10.112.56.171 with SMTP id b11mr27419960lbq.65.1414772352490; Fri, 31 Oct 2014 09:19:12 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id g7si17547598lbs.0.2014.10.31.09.19.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 09:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id ge10so6565776lab.36 for ; Fri, 31 Oct 2014 09:19:12 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr27383003lbb.80.1414772352032; Fri, 31 Oct 2014 09:19:12 -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 c5csp227183lbz; Fri, 31 Oct 2014 09:19:11 -0700 (PDT) X-Received: by 10.224.53.131 with SMTP id m3mr38180597qag.85.1414772350747; Fri, 31 Oct 2014 09:19:10 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g80si17731541qge.98.2014.10.31.09.19.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 Oct 2014 09:19:10 -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]:38828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEuq-0006nv-FP for patch@linaro.org; Fri, 31 Oct 2014 12:19:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkE61-00065m-Kc for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:27:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjxHx-0005KF-DW for qemu-devel@nongnu.org; Thu, 30 Oct 2014 17:29:54 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:40285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjxHx-0005K5-7s for qemu-devel@nongnu.org; Thu, 30 Oct 2014 17:29:49 -0400 Received: by mail-pd0-f177.google.com with SMTP id v10so5889100pde.36 for ; Thu, 30 Oct 2014 14:29:48 -0700 (PDT) X-Received: by 10.66.65.137 with SMTP id x9mr20420405pas.0.1414704588521; Thu, 30 Oct 2014 14:29:48 -0700 (PDT) Received: from gbellows-linaro.qualcomm.com (rrcs-67-52-129-61.west.biz.rr.com. [67.52.129.61]) by mx.google.com with ESMTPSA id o5sm8017713pdr.50.2014.10.30.14.29.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 14:29:47 -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: Thu, 30 Oct 2014 16:28:58 -0500 Message-Id: <1414704538-17103-28-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1414704538-17103-1-git-send-email-greg.bellows@linaro.org> References: <1414704538-17103-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.192.177 Cc: greg.bellows@linaro.org Subject: [Qemu-devel] [PATCH v8 27/27] 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.215.49 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 a711834..d76b47e 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -610,6 +610,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; @@ -696,6 +697,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; @@ -763,6 +765,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). @@ -830,6 +833,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;