]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm/cpregs: Include missing 'target/arm/cpu.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 29 May 2025 16:45:11 +0000 (17:45 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 29 May 2025 16:45:11 +0000 (17:45 +0100)
CPReadFn type definitions use the CPUARMState type, itself
declared in "cpu.h". Include this file in order to avoid when
refactoring headers:

  ../target/arm/cpregs.h:241:27: error: unknown type name 'CPUARMState'
  typedef uint64_t CPReadFn(CPUARMState *env, const ARMCPRegInfo *opaque);
                            ^

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250513173928.77376-5-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpregs.h

index 2183de8eda691a0298379901964cad82e211a5a9..c1a7ae37356868dcae01465fe3435425713f59cc 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "hw/registerfields.h"
 #include "target/arm/kvm-consts.h"
+#include "cpu.h"
 
 /*
  * ARMCPRegInfo type field bits: