summary refs log tree commit diff stats
path: root/target/lm32/cpu.h
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/cpu.h
parent6aa9e42f27331be34e06d4d66f92f2272868f96a (diff)
downloadfocaccia-qemu-6dd40a906d83b642224443f8b60aa96659945ca3.tar.gz
focaccia-qemu-6dd40a906d83b642224443f8b60aa96659945ca3.zip
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/cpu.h')
-rw-r--r--target/lm32/cpu.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/target/lm32/cpu.h b/target/lm32/cpu.h
index ad9452eb9f..7fb65fb4b6 100644
--- a/target/lm32/cpu.h
+++ b/target/lm32/cpu.h
@@ -195,11 +195,6 @@ struct LM32CPU {
     uint32_t features;
 };
 
-static inline LM32CPU *lm32_env_get_cpu(CPULM32State *env)
-{
-    return container_of(env, LM32CPU, env);
-}
-
 #define ENV_OFFSET offsetof(LM32CPU, env)
 
 #ifndef CONFIG_USER_ONLY