summary refs log tree commit diff stats
path: root/hw/misc/xlnx-versal-crl.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-18 21:06:34 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-01-26 11:30:48 +0000
commit8b2c5fb7c7bb3aee2bc56827802425906e4a2f9c (patch)
tree3a01913f43bc2399963146d502398685d3cc4d12 /hw/misc/xlnx-versal-crl.c
parent3896b6ffffe97aa387631a62948a51913f12f7e5 (diff)
downloadfocaccia-qemu-8b2c5fb7c7bb3aee2bc56827802425906e4a2f9c.tar.gz
focaccia-qemu-8b2c5fb7c7bb3aee2bc56827802425906e4a2f9c.zip
hw/misc/xlnx-versal-crl: Include generic 'cpu-qom.h' instead of 'cpu.h'
"target/arm/cpu.h" is target specific, any file including it
becomes target specific too, thus this is the same for any file
including "hw/misc/xlnx-versal-crl.h".

"hw/misc/xlnx-versal-crl.h" doesn't require any target specific
definition however, only the target-agnostic QOM definitions
from "target/arm/cpu-qom.h". Include the latter header to avoid
tainting unnecessary objects as target-specific.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240118200643.29037-14-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc/xlnx-versal-crl.c')
-rw-r--r--hw/misc/xlnx-versal-crl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/misc/xlnx-versal-crl.c b/hw/misc/xlnx-versal-crl.c
index 1f1762ef16..1a596f1cf5 100644
--- a/hw/misc/xlnx-versal-crl.c
+++ b/hw/misc/xlnx-versal-crl.c
@@ -18,6 +18,7 @@
 #include "hw/register.h"
 #include "hw/resettable.h"
 
+#include "target/arm/cpu.h"
 #include "target/arm/arm-powerctl.h"
 #include "target/arm/multiprocessing.h"
 #include "hw/misc/xlnx-versal-crl.h"