qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers
@ 2011-12-20 19:11 Mark Langsdorf
  2011-12-20 19:58 ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Langsdorf @ 2011-12-20 19:11 UTC (permalink / raw)
  To: qemu-devel, peter.maydell, paul

From: Rob Herring <rob.herring@calxeda.com>

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
---
  hw/arm_gic.c |   10 ++++++++--
  1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/hw/arm_gic.c b/hw/arm_gic.c
index 9b52119..5974c2f 100644
--- a/hw/arm_gic.c
+++ b/hw/arm_gic.c
@@ -274,7 +274,7 @@ static uint32_t gic_dist_readb(void *opaque, 
target_phys_addr_t offset)

      cpu = gic_get_current_cpu();
      cm = 1 << cpu;
-    if (offset < 0x100) {
+    if (offset < 0x80) {
  #ifndef NVIC
          if (offset == 0)
              return s->enabled;
@@ -284,6 +284,9 @@ static uint32_t gic_dist_readb(void *opaque, 
target_phys_addr_t offset)
              return 0;
  #endif
          goto bad_reg;
+    } else if (offset < 0x100) {
+        /* Interrupt Security */
+        return 0;
      } else if (offset < 0x200) {
          /* Interrupt Set/Clear Enable.  */
          if (offset < 0x180)
@@ -404,7 +407,7 @@ static void gic_dist_writeb(void *opaque, 
target_phys_addr_t offset,
      int cpu;

      cpu = gic_get_current_cpu();
-    if (offset < 0x100) {
+    if (offset < 0x80) {
  #ifdef NVIC
          goto bad_reg;
  #else
@@ -417,6 +420,9 @@ static void gic_dist_writeb(void *opaque, 
target_phys_addr_t offset,
              goto bad_reg;
          }
  #endif
+    } else if (offset < 0x100) {
+        /* Interrupt Security Registers */
+        /* ignore */
      } else if (offset < 0x180) {
          /* Interrupt Set Enable.  */
          irq = (offset - 0x100) * 8 + GIC_BASE_IRQ;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-20 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 19:11 [Qemu-devel] [PATCH 4/9] arm: add dummy gic security registers Mark Langsdorf
2011-12-20 19:58 ` Peter Maydell
2011-12-20 21:06   ` Mark Langsdorf
2011-12-20 21:27     ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).