summaryrefslogtreecommitdiffstats
path: root/target/cris/translate.c
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 01:46:40 +0100
committerRichard Henderson2019-06-10 16:03:34 +0200
commitdbefca236a464f942efae6319f68aa7663b20718 (patch)
treeb0472d46f164e8ac74a42837b3c902a5f98b4701 /target/cris/translate.c
parenttarget/cris: Reindent op_helper.c (diff)
downloadqemu-dbefca236a464f942efae6319f68aa7663b20718.tar.gz
qemu-dbefca236a464f942efae6319f68aa7663b20718.tar.xz
qemu-dbefca236a464f942efae6319f68aa7663b20718.zip
target/cris: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace cris_env_get_cpu with env_archcpu. The combination CPU(cris_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 'target/cris/translate.c')
-rw-r--r--target/cris/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/cris/translate.c b/target/cris/translate.c
index 31b40a57f9..3429a3b768 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -3097,7 +3097,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns)
* delayslot, like in real hw.
*/
pc_start = tb->pc & ~1;
- dc->cpu = cris_env_get_cpu(env);
+ dc->cpu = env_archcpu(env);
dc->tb = tb;
dc->is_jmp = DISAS_NEXT;