aboutsummaryrefslogtreecommitdiff
path: root/target-lm32/cpu-qom.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-lm32/cpu-qom.h')
-rw-r--r--target-lm32/cpu-qom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-lm32/cpu-qom.h b/target-lm32/cpu-qom.h
index d7525b300c..c0b6ce5897 100644
--- a/target-lm32/cpu-qom.h
+++ b/target-lm32/cpu-qom.h
@@ -69,5 +69,6 @@ static inline LM32CPU *lm32_env_get_cpu(CPULM32State *env)
#define ENV_GET_CPU(e) CPU(lm32_env_get_cpu(e))
+#define ENV_OFFSET offsetof(LM32CPU, env)
#endif