[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 6/8] ppc/xics: An ICS with offset 0 is assumed to
From: |
Nikunj A Dadhania |
Subject: |
[Qemu-devel] [PATCH v2 6/8] ppc/xics: An ICS with offset 0 is assumed to be uninitialized |
Date: |
Wed, 29 Jun 2016 00:35:17 +0530 |
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>
---
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 6ad3057..8c22daf 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -150,7 +150,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-devel] [PATCH v2 0/8] sPAPR xics rework/cleanup, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 1/8] ppc/xics: Rename existing xics to xics_spapr, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 2/8] ppc/xics: Move SPAPR specific code to a separate file, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 3/8] ppc/xics: Implement H_IPOLL using an accessor, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 4/8] ppc/xics: Replace "icp" with "xics" in most places, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 6/8] ppc/xics: An ICS with offset 0 is assumed to be uninitialized,
Nikunj A Dadhania <=
- [Qemu-devel] [PATCH v2 5/8] ppc/xics: Make the ICSState a list, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 7/8] ppc/xics: Use a helper to add a new ICS, Nikunj A Dadhania, 2016/06/28
- [Qemu-devel] [PATCH v2 8/8] ppc/xics: Split ICS into ics-base and ics class, Nikunj A Dadhania, 2016/06/28
- Re: [Qemu-devel] [PATCH v2 0/8] sPAPR xics rework/cleanup, David Gibson, 2016/06/28