Re: [Qemu-devel] [PATCH 05/28] PPC: Set MPIC IDE for IPI to 0

2011-07-25 Thread Alexander Graf
On 25.07.2011, at 10:46, Elie Richa wrote: > > > On 07/23/2011 12:49 PM, Alexander Graf wrote: >> @@ -1304,6 +1304,10 @@ static void mpic_reset (void *opaque) >> mpp->src[i].ipvp = 0x8080; >> mpp->src[i].ide = 0x0001; >> } >> +/* Set IDE for IPIs to 0 so we d

Re: [Qemu-devel] [PATCH 05/28] PPC: Set MPIC IDE for IPI to 0

2011-07-25 Thread Elie Richa
On 07/23/2011 12:49 PM, Alexander Graf wrote: @@ -1304,6 +1304,10 @@ static void mpic_reset (void *opaque) mpp->src[i].ipvp = 0x8080; mpp->src[i].ide = 0x0001; } +/* Set IDE for IPIs to 0 so we don't get spurious interrupts */ +for (i = mpp->irq_ipi0;

[Qemu-devel] [PATCH 05/28] PPC: Set MPIC IDE for IPI to 0

2011-07-23 Thread Alexander Graf
We use the IDE register with IPIs as a mask to keep track which processors have already acknowledged the respective interrupt. So we need to initialize it to 0 to make sure that it doesn't accidently fire an IPI on CPU0 when the first IPI is triggered. Reported-by: Elie Richa Signed-off-by: Alexa