diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 18:38:42 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | 5a7330b35cabc9e2fd3a8577b7004b63af8c57f3 (patch) | |
tree | 337ddcc69d9c329bb93fa483313a63ce1b0ee3ed /target/mips/cpu.h | |
parent | f5c7e93ad9880accbc6ecba3a77d7ac849c57eba (diff) | |
download | qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.zip qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.tar.gz qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.tar.bz2 |
target/mips: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace mips_env_get_cpu with env_archcpu. The combination
CPU(mips_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips/cpu.h')
-rw-r--r-- | target/mips/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h index e684572..cb09425 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1071,11 +1071,6 @@ struct MIPSCPU { CPUMIPSState env; }; -static inline MIPSCPU *mips_env_get_cpu(CPUMIPSState *env) -{ - return container_of(env, MIPSCPU, env); -} - #define ENV_OFFSET offsetof(MIPSCPU, env) void mips_cpu_list(void); |