Skip to contentSkip to conversation

hw/xtensa: fix reset value of MIROUT register of MX PIC

PATCH New Max Filippov 1 participant 1 message Apr 26, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/xtensa: fix reset value of MIROUT register of MX PIC

MX PIC comes out of reset with IRQ routing registers set to 0, thus not delivering any external IRQ to any connected CPU by default. Fix the model to match the hardware.

---
 hw/xtensa/mx_pic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xtensa/mx_pic.c +1 -1
index d889f953d17e..8211c993eb74 100644
@@ -334,7 +334,7 @@ void xtensa_mx_pic_reset(void *opaque)
     mx->miasg = 0;
     mx->mipipart = 0;
     for (i = 0; i < mx->n_irq; ++i) {
-        mx->mirout[i] = 1;
+        mx->mirout[i] = 0;
     }
     for (i = 0; i < mx->n_cpu; ++i) {
         mx->cpu[i].mipicause = 0;
Signature · 1 line
2.30.2