aboutsummaryrefslogtreecommitdiff
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-03-22 17:41:14 -0700
committerRichard Henderson <richard.henderson@linaro.org>2019-06-10 07:03:34 -0700
commit2fc0cc0e1e034582f4718b1a2d57691474ccb6aa (patch)
tree8b6d714fe425358fa96c29e9f4abbab0f1f8252a /target/arm/cpu.h
parent1c7ad260009769eff0c2bbb030d5b50d0e794b6a (diff)
downloadqemu-2fc0cc0e1e034582f4718b1a2d57691474ccb6aa.zip
qemu-2fc0cc0e1e034582f4718b1a2d57691474ccb6aa.tar.gz
qemu-2fc0cc0e1e034582f4718b1a2d57691474ccb6aa.tar.bz2
target/arm: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace arm_env_get_cpu with env_archcpu. The combination CPU(arm_env_get_cpu) should have used ENV_GET_CPU to begin; use env_cpu now. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 1afd1da..c7df381 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -913,11 +913,6 @@ struct ARMCPU {
uint32_t sve_max_vq;
};
-static inline ARMCPU *arm_env_get_cpu(CPUARMState *env)
-{
- return container_of(env, ARMCPU, env);
-}
-
void arm_cpu_post_init(Object *obj);
uint64_t arm_cpu_mp_affinity(int idx, uint8_t clustersz);