From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdnFh-0003xi-Ht for qemu-devel@nongnu.org; Thu, 22 Dec 2011 13:20:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdnFf-0001Fo-ON for qemu-devel@nongnu.org; Thu, 22 Dec 2011 13:20:25 -0500 Received: from smtp201.dfw.emailsrvr.com ([67.192.241.201]:42173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdnFf-0001FF-LL for qemu-devel@nongnu.org; Thu, 22 Dec 2011 13:20:23 -0500 From: Mark Langsdorf Date: Thu, 22 Dec 2011 12:20:09 -0600 Message-Id: <1324578014-24746-5-git-send-email-mark.langsdorf@calxeda.com> In-Reply-To: <1324578014-24746-1-git-send-email-mark.langsdorf@calxeda.com> References: <1324578014-24746-1-git-send-email-mark.langsdorf@calxeda.com> Subject: [Qemu-devel] [PATCH v2 4/9] arm: add dummy gic security registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, Rob Herring , paul@codesourcery.com, Mark Langsdorf From: Rob Herring Implement handling for the RAZ/WI gic security registers. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- Changes from v1 Moved handling back inside the 0-0x100 block Added more clarifying comments hw/arm_gic.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index 9b52119..0339cf5 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -282,6 +282,10 @@ static uint32_t gic_dist_readb(void *opaque, target_phys_addr_t offset) return ((GIC_NIRQ / 32) - 1) | ((NUM_CPU(s) - 1) << 5); if (offset < 0x08) return 0; + if (offset >= 0x80) { + /* Interrupt Security , RAZ/WI */ + return 0; + } #endif goto bad_reg; } else if (offset < 0x200) { @@ -413,6 +417,8 @@ static void gic_dist_writeb(void *opaque, target_phys_addr_t offset, DPRINTF("Distribution %sabled\n", s->enabled ? "En" : "Dis"); } else if (offset < 4) { /* ignored. */ + } else if (offset >= 0x80) { + /* Interrupt Security Registers, RAZ/WI */ } else { goto bad_reg; } -- 1.7.5.4