hw/intc: openpic: Correct the reset value of IPIDR for FSL chipset
commit457279cb49d343b2c39a9efd2b28fe0fbde71f78
authorBin Meng <bmeng.cn@gmail.com>
Sat, 18 Sep 2021 03:26:51 +0000 (18 11:26 +0800)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Sep 2021 02:26:06 +0000 (30 12:26 +1000)
treed40b60f016969167993c20490c3d5fb8f6418cdb
parent4d9b8ef9b5ab880d491b0c41d222b42ed83bdbfe
hw/intc: openpic: Correct the reset value of IPIDR for FSL chipset

The reset value of IPIDR should be zero for Freescale chipset, per
the following 2 manuals I checked:

- P2020RM (https://www.nxp.com/webapp/Download?colCode=P2020RM)
- P4080RM (https://www.nxp.com/webapp/Download?colCode=P4080RM)

Currently it is set to 1, which leaves the IPI enabled on core 0
after power-on reset. Such may cause unexpected interrupt to be
delivered to core 0 if the IPI is triggered from core 0 to other
cores later.

Fixes: ffd5e9fe0276 ("openpic: Reset IRQ source private members")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/584
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20210918032653.646370-1-bin.meng@windriver.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/openpic.c