summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-05-29 17:45:11 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-05-29 17:45:11 +0100
commit982a42c773efc7767e33d618f0fe4fcaef716a57 (patch)
treee0aac6cf687d0520beae1d1a16b1b8dc4fc6bbdc
parent54d1046f939c2c508a6b73531af83345306ecaa9 (diff)
downloadfocaccia-qemu-982a42c773efc7767e33d618f0fe4fcaef716a57.tar.gz
focaccia-qemu-982a42c773efc7767e33d618f0fe4fcaef716a57.zip
target/arm/cpregs: Include missing 'target/arm/cpu.h' header
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>
-rw-r--r--target/arm/cpregs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/arm/cpregs.h b/target/arm/cpregs.h
index 2183de8eda..c1a7ae3735 100644
--- a/target/arm/cpregs.h
+++ b/target/arm/cpregs.h
@@ -23,6 +23,7 @@
 
 #include "hw/registerfields.h"
 #include "target/arm/kvm-consts.h"
+#include "cpu.h"
 
 /*
  * ARMCPRegInfo type field bits: