diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-09-23 18:57:50 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-09-26 13:40:43 +0100 |
| commit | ff197ae9a44741e92df47c78ce2a3d30a4e46455 (patch) | |
| tree | 9ea1f613e04bfd01f714848cb4e9b11d4501b976 /linux-user/arm/target_proc.h | |
| parent | ded97005b2baf6669c102d92f87b5d622136ad18 (diff) | |
| download | focaccia-qemu-ff197ae9a44741e92df47c78ce2a3d30a4e46455.tar.gz focaccia-qemu-ff197ae9a44741e92df47c78ce2a3d30a4e46455.zip | |
target/arm: Move ID register field defs to cpu-features.h
Currently we define constants for the ID register fields in cpu.h. This means they're defined for a lot more code in QEMU than actually needs them. Move them to cpu-features.h, which is where we define the feature functions that test fields in these registers. There's only one place where we need to use some of these macro definitions that we weren't already including cpu-features.h: linux-user/arm/target_proc.h. Otherwise this patch is a pure movement of code from one file to the other. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/arm/target_proc.h')
| -rw-r--r-- | linux-user/arm/target_proc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/arm/target_proc.h b/linux-user/arm/target_proc.h index a4cd6948c6..a28d7231cd 100644 --- a/linux-user/arm/target_proc.h +++ b/linux-user/arm/target_proc.h @@ -6,6 +6,8 @@ #ifndef ARM_TARGET_PROC_H #define ARM_TARGET_PROC_H +#include "target/arm/cpu-features.h" /* for MIDR_EL1 field definitions */ + static int open_cpuinfo(CPUArchState *cpu_env, int fd) { ARMCPU *cpu = env_archcpu(cpu_env); |