Forráskód Böngészése

hw/arm/armv7m: Make 'hw/intc/armv7m_nvic.h' a target agnostic header

Now than we can access the M-profile bank index
definitions from the target-agnostic "cpu-qom.h"
header, we don't need the huge "cpu.h" anymore
(except in hw/arm/armv7m.c). Reduce its inclusion
to the source unit.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240118200643.29037-17-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Philippe Mathieu-Daudé 1 éve
szülő
commit
9ab1cf6558
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 0
      hw/arm/armv7m.c
  2. 1 1
      include/hw/intc/armv7m_nvic.h

+ 1 - 0
hw/arm/armv7m.c

@@ -21,6 +21,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "target/arm/idau.h"
 #include "target/arm/idau.h"
+#include "target/arm/cpu.h"
 #include "target/arm/cpu-features.h"
 #include "target/arm/cpu-features.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 
 

+ 1 - 1
include/hw/intc/armv7m_nvic.h

@@ -10,7 +10,7 @@
 #ifndef HW_ARM_ARMV7M_NVIC_H
 #ifndef HW_ARM_ARMV7M_NVIC_H
 #define HW_ARM_ARMV7M_NVIC_H
 #define HW_ARM_ARMV7M_NVIC_H
 
 
-#include "target/arm/cpu.h"
+#include "target/arm/cpu-qom.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "hw/timer/armv7m_systick.h"
 #include "hw/timer/armv7m_systick.h"
 #include "qom/object.h"
 #include "qom/object.h"