[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 01/13] pseries: Fix incorrect initialization of interr
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 01/13] pseries: Fix incorrect initialization of interrupt controller |
Date: |
Tue, 4 Dec 2012 13:42:05 +1100 |
Currently in the reset code for the XICS interrupt controller, we
initialize the pending_priority field to 0 (most favored, by XICS
convention). This is incorrect, since there is no pending interrupt, it
should be set to least favored - 0xff. At the moment our XICS
implementation doesn't get hurt by this edge case, but it does confuse the
upcoming kernel XICS implementation.
Signed-off-by: David Gibson <address@hidden>
---
hw/xics.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/xics.c b/hw/xics.c
index 1da3106..edf5833 100644
--- a/hw/xics.c
+++ b/hw/xics.c
@@ -495,7 +495,7 @@ static void xics_reset(void *opaque)
for (i = 0; i < icp->nr_servers; i++) {
icp->ss[i].xirr = 0;
- icp->ss[i].pending_priority = 0;
+ icp->ss[i].pending_priority = 0xff;
icp->ss[i].mfrr = 0xff;
/* Make all outputs are deasserted */
qemu_set_irq(icp->ss[i].output, 0);
--
1.7.10.4
- [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, (continued)
- [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, David Gibson, 2012/12/03
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, Alexander Graf, 2012/12/13
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, David Gibson, 2012/12/16
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, Alexander Graf, 2012/12/17
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, David Gibson, 2012/12/17
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, Alexander Graf, 2012/12/17
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, David Gibson, 2012/12/18
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, Alexander Graf, 2012/12/19
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, David Gibson, 2012/12/19
- Re: [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties, Alexander Graf, 2012/12/20
[Qemu-ppc] [PATCH 01/13] pseries: Fix incorrect initialization of interrupt controller,
David Gibson <=
[Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support, David Gibson, 2012/12/03
Re: [Qemu-ppc] [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support, Alexander Graf, 2012/12/04
Re: [Qemu-ppc] [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support, Erlon Cruz, 2012/12/05
Re: [Qemu-ppc] [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support, Alexander Graf, 2012/12/05
Re: [Qemu-ppc] [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support, Alexander Graf, 2012/12/05
Re: [Qemu-ppc] [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support, Alexander Graf, 2012/12/05