summary refs log tree commit diff stats
path: root/include/hw/arm/stm32l4x5_soc.h
diff options
context:
space:
mode:
authorInès Varhol <ines.varhol@telecom-paris.fr>2024-02-26 14:07:23 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-02-27 13:01:41 +0000
commit5928ed26b3a72640f8567bd892863e491a1c8c3f (patch)
tree84f81d43f1eaae4bfdc5c2a1fd50889a8cbda9a2 /include/hw/arm/stm32l4x5_soc.h
parent3b3e4c2803a58ddc14f37d05c7d0e2a3f749bc67 (diff)
downloadfocaccia-qemu-5928ed26b3a72640f8567bd892863e491a1c8c3f.tar.gz
focaccia-qemu-5928ed26b3a72640f8567bd892863e491a1c8c3f.zip
hw/arm: Use TYPE_OR_IRQ when connecting STM32L4x5 EXTI fan-in IRQs
Fixes: 52671f69f7a4 ("[PATCH v8 0/3] Add device STM32L4x5 EXTI")
Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
Message-id: 20240220184145.106107-2-ines.varhol@telecom-paris.fr
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm/stm32l4x5_soc.h')
-rw-r--r--include/hw/arm/stm32l4x5_soc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/arm/stm32l4x5_soc.h b/include/hw/arm/stm32l4x5_soc.h
index baf70410b5..4f314b7a93 100644
--- a/include/hw/arm/stm32l4x5_soc.h
+++ b/include/hw/arm/stm32l4x5_soc.h
@@ -26,6 +26,7 @@
 
 #include "exec/memory.h"
 #include "hw/arm/armv7m.h"
+#include "hw/or-irq.h"
 #include "hw/misc/stm32l4x5_syscfg.h"
 #include "hw/misc/stm32l4x5_exti.h"
 #include "qom/object.h"
@@ -36,12 +37,15 @@
 #define TYPE_STM32L4X5XG_SOC "stm32l4x5xg-soc"
 OBJECT_DECLARE_TYPE(Stm32l4x5SocState, Stm32l4x5SocClass, STM32L4X5_SOC)
 
+#define NUM_EXTI_OR_GATES 4
+
 struct Stm32l4x5SocState {
     SysBusDevice parent_obj;
 
     ARMv7MState armv7m;
 
     Stm32l4x5ExtiState exti;
+    OrIRQState exti_or_gates[NUM_EXTI_OR_GATES];
     Stm32l4x5SyscfgState syscfg;
 
     MemoryRegion sram1;