aboutsummaryrefslogtreecommitdiff
path: root/monitor/hmp-cmds-target.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/hmp-cmds-target.c')
-rw-r--r--monitor/hmp-cmds-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c
index 0d3e84d..d9fbcac 100644
--- a/monitor/hmp-cmds-target.c
+++ b/monitor/hmp-cmds-target.c
@@ -81,7 +81,7 @@ CPUArchState *mon_get_cpu_env(Monitor *mon)
{
CPUState *cs = mon_get_cpu(mon);
- return cs ? cs->env_ptr : NULL;
+ return cs ? cpu_env(cs) : NULL;
}
int monitor_get_cpu_index(Monitor *mon)