]> git.proxmox.com Git - qemu.git/blobdiff - monitor.c
vmdk: check granularity field in opening
[qemu.git] / monitor.c
index 6db2ba4d7aa958980ec9808495554a4b8e919b41..5dc0aa97f5ceadba86c28558256b797cc650da8e 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1164,7 +1164,7 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
             cpu_physical_memory_read(addr, buf, l);
         } else {
             env = mon_get_cpu();
-            if (cpu_memory_rw_debug(env, addr, buf, l, 0) < 0) {
+            if (cpu_memory_rw_debug(ENV_GET_CPU(env), addr, buf, l, 0) < 0) {
                 monitor_printf(mon, " Cannot access memory\n");
                 break;
             }