summaryrefslogtreecommitdiff
path: root/target-xtensa/cpu-qom.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-xtensa/cpu-qom.h')
-rw-r--r--target-xtensa/cpu-qom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-xtensa/cpu-qom.h b/target-xtensa/cpu-qom.h
index 270de16583..c78136bf72 100644
--- a/target-xtensa/cpu-qom.h
+++ b/target-xtensa/cpu-qom.h
@@ -78,5 +78,6 @@ static inline XtensaCPU *xtensa_env_get_cpu(const CPUXtensaState *env)
#define ENV_GET_CPU(e) CPU(xtensa_env_get_cpu(e))
+#define ENV_OFFSET offsetof(XtensaCPU, env)
#endif