From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2ZCm-0006Rg-Tg for qemu-devel@nongnu.org; Fri, 17 Aug 2012 22:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2ZCl-0004o5-P4 for qemu-devel@nongnu.org; Fri, 17 Aug 2012 22:56:04 -0400 Received: from gir.skynet.ie ([193.1.99.77]:38910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2ZCl-0004nZ-JB for qemu-devel@nongnu.org; Fri, 17 Aug 2012 22:56:03 -0400 From: Brendan Fennell Date: Sat, 18 Aug 2012 03:55:44 +0100 Message-Id: <1345258544-4740-1-git-send-email-bfennell@skynet.ie> Subject: [Qemu-devel] [PATCH] pl190: fix read of VECTADDR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Brendan Fennell Signed-off-by: Brendan Fennell --- 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