Message ID | 1429113742-8371-6-git-send-email-greg.bellows@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCTYDDF56AHBBGU3XKUQKGQECWFZXMI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B6F282121F for <linaro@patches.linaro.org>; Wed, 15 Apr 2015 16:11:07 +0000 (UTC) Received: by lbdc7 with SMTP id c7sf10683154lbd.2 for <linaro@patches.linaro.org>; Wed, 15 Apr 2015 09:11:06 -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=FWInzM+qw348XfLuKasK6FXD8fDLaoazdcymXj/DmQs=; b=A0mU5Glpr/xOnBRXRKxR2KAXKmUHl46PiS8PpvR2JSnP8FzoEVDX11r+gpizmOMLiH UJSSHJBCMoWC0b/bs7r7gO0etC4cARv/eWXHWA7nGlxo5eOQXrqT58EZaj4y08/DYF96 dtAeb++dHmJKTX+MjF5XyQHs4o2t4yHr7uFfaK5a5u7pcSk/QozJiVBvw4uA2xVA+J7I 2wEVADecu2hfKpl5Y1yXgezJ27sw5pULRDhzXfbjm8F7IKfoDTXymzJsplrso7UQ+FWz 0peXQeFWzfKeCMTzYs+bUdlSzSc/TqSO50tqsBCoID5bcnlbUQkivX1uSUCgiy2jZxI5 l5Gg== X-Gm-Message-State: ALoCoQk8whHAYB8otsdMhvK0Yu4Xmwa2Vv/SXKOagSBbU8xSy8AQ1wpHWCmUvW3oszx/U/FghBer X-Received: by 10.180.81.134 with SMTP id a6mr5150572wiy.1.1429114266684; Wed, 15 Apr 2015 09:11:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.131 with SMTP id dg3ls213702lac.74.gmail; Wed, 15 Apr 2015 09:11:06 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr24216380laq.73.1429114266398; Wed, 15 Apr 2015 09:11:06 -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 kv10si4236726lac.89.2015.04.15.09.11.06 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 09:11:06 -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 lbbzk7 with SMTP id zk7so37955026lbb.0 for <patchwork-forward@linaro.org>; Wed, 15 Apr 2015 09:11:06 -0700 (PDT) X-Received: by 10.152.178.197 with SMTP id da5mr25101659lac.56.1429114266100; Wed, 15 Apr 2015 09:11:06 -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.67.65 with SMTP id l1csp2610424lbt; Wed, 15 Apr 2015 09:11:05 -0700 (PDT) X-Received: by 10.55.20.65 with SMTP id e62mr52889694qkh.90.1429114264882; Wed, 15 Apr 2015 09:11:04 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w30si5061532qge.103.2015.04.15.09.11.04 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Apr 2015 09:11:04 -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]:33012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1YiPu2-0005uW-V9 for patch@linaro.org; Wed, 15 Apr 2015 12:11:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <greg.bellows@linaro.org>) id 1YiPme-0002iS-0Y for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <greg.bellows@linaro.org>) id 1YiPmY-0001z0-B0 for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:23 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:33303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <greg.bellows@linaro.org>) id 1YiPmY-0001yv-6i for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:18 -0400 Received: by oica37 with SMTP id a37so26933526oic.0 for <qemu-devel@nongnu.org>; Wed, 15 Apr 2015 09:03:17 -0700 (PDT) X-Received: by 10.202.79.210 with SMTP id d201mr5063286oib.65.1429113759119; Wed, 15 Apr 2015 09:02:39 -0700 (PDT) Received: from gbellows-linaro.gateway.pace.com (99-179-1-214.lightspeed.austtx.sbcglobal.net. [99.179.1.214]) by mx.google.com with ESMTPSA id x142sm2567707oie.19.2015.04.15.09.02.37 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Apr 2015 09:02:37 -0700 (PDT) From: Greg Bellows <greg.bellows@linaro.org> To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Wed, 15 Apr 2015 11:02:11 -0500 Message-Id: <1429113742-8371-6-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1429113742-8371-1-git-send-email-greg.bellows@linaro.org> References: <1429113742-8371-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.51 Cc: Fabian Aggeler <aggelerf@ethz.ch>, Greg Bellows <greg.bellows@linaro.org> Subject: [Qemu-devel] [PATCH v3 05/16] hw/intc/arm_gic: Add ns_access() function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=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 |
diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index cdf7408..e0bce6e 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -45,6 +45,13 @@ static inline int gic_get_current_cpu(GICState *s) return 0; } +/* Security state of a read / write access */ +static inline bool ns_access(void) +{ + /* TODO: use actual security state */ + return true; +} + /* TODO: Many places that call this routine could be optimized. */ /* Update interrupt status after enabled or pending bits have been changed. */ void gic_update(GICState *s)