target/openrisc: Use env_cpu, env_archcpu
commit5ee2b02e926ba12946c2ce3fc6ed9913e7c94859
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 23 Mar 2019 01:48:56 +0000 (22 18:48 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 14:03:42 +0000 (10 07:03 -0700)
tree3bdb5211d2f992587f142a358e023fd83fb4d32b
parent29168c6585673402e5ff285d84fd1d44de977424
target/openrisc: Use env_cpu, env_archcpu

Cleanup in the boilerplate that each target must define.
Replace openrisc_env_get_cpu with env_archcpu.  The combination
CPU(openrisc_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>
linux-user/openrisc/cpu_loop.c
target/openrisc/cpu.h
target/openrisc/exception_helper.c
target/openrisc/sys_helper.c