summaryrefslogtreecommitdiff
path: root/target-sparc/cpu-qom.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/cpu-qom.h')
-rw-r--r--target-sparc/cpu-qom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/cpu-qom.h b/target-sparc/cpu-qom.h
index 89cd1cf2d..efeeca0d9 100644
--- a/target-sparc/cpu-qom.h
+++ b/target-sparc/cpu-qom.h
@@ -73,5 +73,6 @@ static inline SPARCCPU *sparc_env_get_cpu(CPUSPARCState *env)
#define ENV_GET_CPU(e) CPU(sparc_env_get_cpu(e))
+#define ENV_OFFSET offsetof(SPARCCPU, env)
#endif