diff options
author | Richard Henderson | 2019-03-23 03:21:48 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | dc79e928698567b14e6638c4c9f1e43dc386f1d8 (patch) | |
tree | 26b73cb1112ea0cee56cf174b566ccefd6717e95 /target/s390x/cpu.h | |
parent | target/riscv: Use env_cpu, env_archcpu (diff) | |
download | qemu-dc79e928698567b14e6638c4c9f1e43dc386f1d8.tar.gz qemu-dc79e928698567b14e6638c4c9f1e43dc386f1d8.tar.xz qemu-dc79e928698567b14e6638c4c9f1e43dc386f1d8.zip |
target/s390x: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace s390_env_get_cpu with env_archcpu. The combination
CPU(s390_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/s390x/cpu.h')
-rw-r--r-- | target/s390x/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 56767f289d..d18b279d87 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -163,11 +163,6 @@ struct S390CPU { uint32_t irqstate_saved_size; }; -static inline S390CPU *s390_env_get_cpu(CPUS390XState *env) -{ - return container_of(env, S390CPU, env); -} - #define ENV_OFFSET offsetof(S390CPU, env) #ifndef CONFIG_USER_ONLY |