]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Move arm_current_el() and arm_el_is_aa64() to internals.h
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 12 Mar 2025 13:25:07 +0000 (13:25 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Mar 2025 10:49:20 +0000 (10:49 +0000)
commit2beb051191b526608e0f269559962f4d2f618850
tree56a82576383c49a54415b8074388b5563d47ffd8
parentfefc1220ad68d816627aebc393cbf2cb34ff6924
target/arm: Move arm_current_el() and arm_el_is_aa64() to internals.h

The functions arm_current_el() and arm_el_is_aa64() are used only in
target/arm and in hw/intc/arm_gicv3_cpuif.c.  They're functions that
query internal state of the CPU.  Move them out of cpu.h and into
internals.h.

This means we need to include internals.h in arm_gicv3_cpuif.c, but
this is justifiable because that file is implementing the GICv3 CPU
interface, which really is part of the CPU proper; we just ended up
implementing it in code in hw/intc/ for historical reasons.

The motivation for this move is that we'd like to change
arm_el_is_aa64() to add a condition that uses cpu_isar_feature();
but we don't want to include cpu-features.h in cpu.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/intc/arm_gicv3_cpuif.c
target/arm/arch_dump.c
target/arm/cpu.h
target/arm/internals.h