aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze/cpu-qom.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-microblaze/cpu-qom.h')
-rw-r--r--target-microblaze/cpu-qom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-microblaze/cpu-qom.h b/target-microblaze/cpu-qom.h
index 5ea911c8e4..a0248a5a22 100644
--- a/target-microblaze/cpu-qom.h
+++ b/target-microblaze/cpu-qom.h
@@ -68,5 +68,6 @@ static inline MicroBlazeCPU *mb_env_get_cpu(CPUMBState *env)
#define ENV_GET_CPU(e) CPU(mb_env_get_cpu(e))
+#define ENV_OFFSET offsetof(MicroBlazeCPU, env)
#endif