diff options
author | Richard Henderson | 2019-03-23 03:36:20 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | 5a59fbce9141c40db0f0a5a6e17583ad9189b48b (patch) | |
tree | 77509f65e11b560390ca44b632f9c3c6369f971d /bsd-user | |
parent | target/sh4: Use env_cpu, env_archcpu (diff) | |
download | qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.tar.gz qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.tar.xz qemu-5a59fbce9141c40db0f0a5a6e17583ad9189b48b.zip |
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 'bsd-user')
-rw-r--r-- | bsd-user/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c index 53e1f42408..c473a99153 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -486,7 +486,7 @@ static void flush_windows(CPUSPARCState *env) void cpu_loop(CPUSPARCState *env) { - CPUState *cs = CPU(sparc_env_get_cpu(env)); + CPUState *cs = env_cpu(env); int trapnr, ret, syscall_nr; //target_siginfo_t info; |