summary refs log tree commit diff stats
path: root/target/s390x/cpu-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/s390x/cpu-dump.c')
-rw-r--r--target/s390x/cpu-dump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/s390x/cpu-dump.c b/target/s390x/cpu-dump.c
index ffa9e94d84..69cc9f7746 100644
--- a/target/s390x/cpu-dump.c
+++ b/target/s390x/cpu-dump.c
@@ -27,8 +27,7 @@
 
 void s390_cpu_dump_state(CPUState *cs, FILE *f, int flags)
 {
-    S390CPU *cpu = S390_CPU(cs);
-    CPUS390XState *env = &cpu->env;
+    CPUS390XState *env = cpu_env(cs);
     int i;
 
     qemu_fprintf(f, "PSW=mask %016" PRIx64 " addr %016" PRIx64,