Skip to content

Commit ff197ae

Browse files
committed
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>
1 parent ded9700 commit ff197ae

File tree

3 files changed

+412
-410
lines changed

3 files changed

+412
-410
lines changed

linux-user/arm/target_proc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef ARM_TARGET_PROC_H
77
#define ARM_TARGET_PROC_H
88

9+
#include "target/arm/cpu-features.h" /* for MIDR_EL1 field definitions */
10+
911
static int open_cpuinfo(CPUArchState *cpu_env, int fd)
1012
{
1113
ARMCPU *cpu = env_archcpu(cpu_env);

0 commit comments

Comments
 (0)