qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]  [PATCH] pl190: fix read of VECTADDR
@ 2012-08-18  2:55 Brendan Fennell
  2012-08-18 10:00 ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Brendan Fennell @ 2012-08-18  2:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Brendan Fennell

Signed-off-by: Brendan Fennell <bfennell@skynet.ie>
---
 hw/pl190.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pl190.c b/hw/pl190.c
index cb50afb..d69d5be 100644
--- a/hw/pl190.c
+++ b/hw/pl190.c
@@ -133,7 +133,7 @@ static uint64_t pl190_read(void *opaque, target_phys_addr_t offset,
             s->priority = i;
             pl190_update(s);
           }
-        return s->vect_addr[s->priority];
+        return s->vect_addr[s->priority - 1];
     case 13: /* DEFVECTADDR */
         return s->vect_addr[16];
     default:
-- 
1.7.2.5

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

end of thread, other threads:[~2012-08-18 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-18  2:55 [Qemu-devel] [PATCH] pl190: fix read of VECTADDR Brendan Fennell
2012-08-18 10:00 ` Peter Maydell
2012-08-18 10:41   ` Brendan Fennell
2012-08-18 12:20     ` Peter Maydell
2012-08-18 20:00       ` Brendan Fennell

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).