aboutsummaryrefslogtreecommitdiff
path: root/target/lm32/translate.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-03-22 18:13:44 -0700
committerRichard Henderson <richard.henderson@linaro.org>2019-06-10 07:03:42 -0700
commit6dd40a906d83b642224443f8b60aa96659945ca3 (patch)
treec427d44c72522a66cb1d27a58c81099b5b1ae7ba /target/lm32/translate.c
parent6aa9e42f27331be34e06d4d66f92f2272868f96a (diff)
downloadqemu-6dd40a906d83b642224443f8b60aa96659945ca3.zip
qemu-6dd40a906d83b642224443f8b60aa96659945ca3.tar.gz
qemu-6dd40a906d83b642224443f8b60aa96659945ca3.tar.bz2
target/lm32: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace lm32_env_get_cpu with env_archcpu. The combination CPU(lm32_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/lm32/translate.c')
-rw-r--r--target/lm32/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/lm32/translate.c b/target/lm32/translate.c
index f0e0e70..b9f2f2c 100644
--- a/target/lm32/translate.c
+++ b/target/lm32/translate.c
@@ -1053,7 +1053,7 @@ static inline void decode(DisasContext *dc, uint32_t ir)
void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int max_insns)
{
CPULM32State *env = cs->env_ptr;
- LM32CPU *cpu = lm32_env_get_cpu(env);
+ LM32CPU *cpu = env_archcpu(env);
struct DisasContext ctx, *dc = &ctx;
uint32_t pc_start;
uint32_t page_start;