diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 19:36:20 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | 5a59fbce9141c40db0f0a5a6e17583ad9189b48b (patch) | |
tree | 77509f65e11b560390ca44b632f9c3c6369f971d /target/sparc/cpu.h | |
parent | dad1c8ecc707a0f3fe6963b364477ce0a92670fa (diff) | |
download | qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.zip qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.tar.gz qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.tar.bz2 |
target/sparc: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace sparc_env_get_cpu with env_archcpu. The combination
CPU(sparc_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: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/sparc/cpu.h')
-rw-r--r-- | target/sparc/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index e294213..adcd9e3 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -532,11 +532,6 @@ struct SPARCCPU { CPUSPARCState env; }; -static inline SPARCCPU *sparc_env_get_cpu(CPUSPARCState *env) -{ - return container_of(env, SPARCCPU, env); -} - #define ENV_OFFSET offsetof(SPARCCPU, env) #ifndef CONFIG_USER_ONLY |