[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 41/45] ppc/xics: An ICS with offset 0 is assumed to be
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 41/45] ppc/xics: An ICS with offset 0 is assumed to be uninitialized |
Date: |
Fri, 23 Sep 2016 17:15:17 +1000 |
From: Benjamin Herrenschmidt <address@hidden>
This will make life easier for dealing with dynamically configured
ICSes such as PHB3
Signed-off-by: Benjamin Herrenschmidt <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: Nikunj A Dadhania <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
include/hw/ppc/xics.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 2db9f93..5aac67a 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -149,7 +149,7 @@ struct ICSState {
static inline bool ics_valid_irq(ICSState *ics, uint32_t nr)
{
- return (nr >= ics->offset)
+ return (ics->offset != 0) && (nr >= ics->offset)
&& (nr < (ics->offset + ics->nr_irqs));
}
--
2.7.4
- [Qemu-ppc] [PULL 32/45] target-ppc: add lxsi[bw]zx instruction, (continued)
- [Qemu-ppc] [PULL 32/45] target-ppc: add lxsi[bw]zx instruction, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 34/45] target-ppc: implement darn instruction, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 44/45] monitor: fix crash for platforms without a CPU 0, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 06/45] target-ppc: add vector bit permute doubleword instruction, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 28/45] target-ppc: consolidate load with reservation, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 29/45] target-ppc: move out stqcx impementation, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 23/45] target-ppc: convert ld64 to use new macro, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 07/45] target-ppc: add vector permute right indexed instruction, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 38/45] target-ppc: tlbie/tlbivax should have global effect, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 42/45] ppc/kvm: Mark 64kB page size support as disabled if not available, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 41/45] ppc/xics: An ICS with offset 0 is assumed to be uninitialized,
David Gibson <=
- [Qemu-ppc] [PULL 33/45] target-ppc: add stxsi[bh]x instruction, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 39/45] Enable H_CLEAR_MOD and H_CLEAR_REF hypercalls on KVM/PPC64., David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 45/45] spapr_pci: Add numa node id, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 10/45] libqos: define SPAPR libqos functions, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 26/45] target-ppc: convert st64 to use new macro, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 11/45] tests: add RTAS command in the protocol, David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 37/45] target-ppc: add flag in check_tlb_flush(), David Gibson, 2016/09/23
- [Qemu-ppc] [PULL 14/45] adb.c: add support for QKeyCode, David Gibson, 2016/09/23
- Re: [Qemu-ppc] [Qemu-devel] [PULL 00/45] ppc-for-2.8 queue 20160923, no-reply, 2016/09/23
- Re: [Qemu-ppc] [PULL 00/45] ppc-for-2.8 queue 20160923, Peter Maydell, 2016/09/23