summaryrefslogtreecommitdiffstats
path: root/target/hppa/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 01:51:33 +0100
committerRichard Henderson2019-06-10 16:03:34 +0200
commit25f327081b4f63290cce0607512e4627cbfd408e (patch)
tree9d182af877df67dd43764439cb93e8d25e62c9ca /target/hppa/cpu.h
parenttarget/cris: Use env_cpu, env_archcpu (diff)
downloadqemu-25f327081b4f63290cce0607512e4627cbfd408e.tar.gz
qemu-25f327081b4f63290cce0607512e4627cbfd408e.tar.xz
qemu-25f327081b4f63290cce0607512e4627cbfd408e.zip
target/hppa: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace hppa_env_get_cpu with env_archcpu. The combination CPU(hppa_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/hppa/cpu.h')
-rw-r--r--target/hppa/cpu.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h
index 0cb1fc8800..75e6a91a5e 100644
--- a/target/hppa/cpu.h
+++ b/target/hppa/cpu.h
@@ -222,11 +222,6 @@ struct HPPACPU {
QEMUTimer *alarm_timer;
};
-static inline HPPACPU *hppa_env_get_cpu(CPUHPPAState *env)
-{
- return container_of(env, HPPACPU, env);
-}
-
#define ENV_OFFSET offsetof(HPPACPU, env)
typedef CPUHPPAState CPUArchState;