[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 1/4] hw/intc: don't bail out gicv3 model init for revision 4
From: |
Leif Lindholm |
Subject: |
[RFC PATCH 1/4] hw/intc: don't bail out gicv3 model init for revision 4 |
Date: |
Sun, 24 Jan 2021 02:53:03 +0000 |
As a first step towards GICv4 compatibility, add support for gic revision 4
to GICv3 driver (i.e. don't bail out if revision 4 is encountered).
Signed-off-by: Leif Lindholm <leif@nuviainc.com>
---
hw/intc/arm_gicv3_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c
index 58ef65f589..7365d24873 100644
--- a/hw/intc/arm_gicv3_common.c
+++ b/hw/intc/arm_gicv3_common.c
@@ -315,7 +315,7 @@ static void arm_gicv3_common_realize(DeviceState *dev,
Error **errp)
* conditions. However, in future it could be used, for example, if we
* implement GICv4.
*/
- if (s->revision != 3) {
+ if (s->revision != 3 && s->revision != 4) {
error_setg(errp, "unsupported GIC revision %d", s->revision);
return;
}
--
2.20.1