target/nios2: Use env_cpu, env_archcpu
commit29168c6585673402e5ff285d84fd1d44de977424
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 23 Mar 2019 01:44:44 +0000 (22 18:44 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 14:03:42 +0000 (10 07:03 -0700)
treef066622153b729577a75fb19ea7c826016a2b04c
parentf8600ba22188595bca6c098ab66b9641b10bca99
target/nios2: Use env_cpu, env_archcpu

Cleanup in the boilerplate that each target must define.
Replace nios2_env_get_cpu with env_archcpu.  The combination
CPU(nios2_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>
hw/nios2/cpu_pic.c
target/nios2/cpu.h
target/nios2/mmu.c