Fixed default IRQ assignment for PL190 VIC.
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.
Signed-off-by Himanshu Chauhan <[email protected]>
--- hw/pl190.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
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) {
Signature · 1 line
1.7.0.4
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_addrin structure.Signed-off-by Himanshu Chauhan <[email protected]>--- hw/pl190.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)hw/pl190.c +0
-0
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