diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 18:48:56 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | 5ee2b02e926ba12946c2ce3fc6ed9913e7c94859 (patch) | |
tree | 3bdb5211d2f992587f142a358e023fd83fb4d32b /linux-user/openrisc | |
parent | 29168c6585673402e5ff285d84fd1d44de977424 (diff) | |
download | qemu-5ee2b02e926ba12946c2ce3fc6ed9913e7c94859.zip qemu-5ee2b02e926ba12946c2ce3fc6ed9913e7c94859.tar.gz qemu-5ee2b02e926ba12946c2ce3fc6ed9913e7c94859.tar.bz2 |
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>
Diffstat (limited to 'linux-user/openrisc')
-rw-r--r-- | linux-user/openrisc/cpu_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/openrisc/cpu_loop.c b/linux-user/openrisc/cpu_loop.c index f496e4b..4b8165b 100644 --- a/linux-user/openrisc/cpu_loop.c +++ b/linux-user/openrisc/cpu_loop.c @@ -23,7 +23,7 @@ void cpu_loop(CPUOpenRISCState *env) { - CPUState *cs = CPU(openrisc_env_get_cpu(env)); + CPUState *cs = env_cpu(env); int trapnr; abi_long ret; target_siginfo_t info; |