]> Git Repo - qemu.git/blobdiff - monitor.c
hw/pvrdma: Fill error code in command's response
[qemu.git] / monitor.c
index 7848a3cb0dfd50140b6733baf512080610284063..0ad54d8b118d8fa325ad260ce21262c56b857887 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1600,7 +1600,13 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
         if (l > line_size)
             l = line_size;
         if (is_physical) {
-            cpu_physical_memory_read(addr, buf, l);
+            AddressSpace *as = cs ? cs->as : &address_space_memory;
+            MemTxResult r = address_space_read(as, addr,
+                                               MEMTXATTRS_UNSPECIFIED, buf, l);
+            if (r != MEMTX_OK) {
+                monitor_printf(mon, " Cannot access memory\n");
+                break;
+            }
         } else {
             if (cpu_memory_rw_debug(cs, addr, buf, l, 0) < 0) {
                 monitor_printf(mon, " Cannot access memory\n");
This page took 0.024031 seconds and 4 git commands to generate.