summary refs log tree commit diff stats
path: root/rust/qemu-api/src/c_str.rs
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-03-12 13:25:07 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-03-14 10:49:20 +0000
commit2beb051191b526608e0f269559962f4d2f618850 (patch)
tree56a82576383c49a54415b8074388b5563d47ffd8 /rust/qemu-api/src/c_str.rs
parentfefc1220ad68d816627aebc393cbf2cb34ff6924 (diff)
downloadfocaccia-qemu-2beb051191b526608e0f269559962f4d2f618850.tar.gz
focaccia-qemu-2beb051191b526608e0f269559962f4d2f618850.zip
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>
Diffstat (limited to 'rust/qemu-api/src/c_str.rs')
0 files changed, 0 insertions, 0 deletions