Skip to contentSkip to conversation

Fixed default IRQ assignment for PL190 VIC.

PATCH Superseded Himanshu Chauhan 2 participants 2 messages Nov 1, 2010 – Dec 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed default IRQ assignment for PL190 VIC.

Everywhere else vect_addr[16] is returned on a read of default vector address but updation is done only on default_addr in structure.

---
 hw/pl190.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/pl190.c +1 -0
index a4bc9c1..7363b87 100644
@@ -187,6 +187,7 @@ static void pl190_write(void *opaque, target_phys_addr_t offset, uint32_t val)
         break;
     case 13: /* DEFVECTADDR */
         s->default_addr = val;
+        s->vect_addr[16] = val;
         break;
     case 0xc0: /* ITCR */
         if (val) {
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 13 lines · Himanshu Chauhan

Everywhere else vect_addr[16] is returned on a read of default vector address but updation is done only on default_addr in structure.

---
 hw/pl190.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/pl190.c +0 -0
index a4bc9c1..7363b87 100644

hw/pl190.c static void pl190_write(void *opaque, target_phys_addr_t offset, uint32_t val) · line 193

Quoted 7 lines
hw/pl190.c +1 -0
@@ -187,6 +187,7 @@ static void pl190_write(void *opaque, target_phys_addr_t offset, uint32_t val)
         break;
     case 13: /* DEFVECTADDR */
         s->default_addr = val;
+        s->vect_addr[16] = val;
         break;
     case 0xc0: /* ITCR */
         if (val) {

After this change, default_addr is not used anymore in this file. It should be removed from the pl190_state structure.

Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net