target/microblaze: Use env_cpu, env_archcpu
commitf5c7e93ad9880accbc6ecba3a77d7ac849c57eba
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 23 Mar 2019 01:27:36 +0000 (22 18:27 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 14:03:42 +0000 (10 07:03 -0700)
tree75a6261784152464954aa8f0ff780de36596340e
parenta8d92fd869c601f723b82d9736a2d78ae640b8a2
target/microblaze: Use env_cpu, env_archcpu

Cleanup in the boilerplate that each target must define.
Replace mb_env_get_cpu with env_archcpu.  The combination
CPU(mb_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.

Move cpu_mmu_index below the include of "exec/cpu-all.h",
so that the definition of env_archcpu is available.

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>
linux-user/microblaze/cpu_loop.c
target/microblaze/cpu.h
target/microblaze/mmu.c
target/microblaze/op_helper.c
target/microblaze/translate.c