aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2011-08-14 23:22:04 -0400
committerBlue Swirl <blauwirbel@gmail.com>2011-08-21 16:42:36 +0000
commit8a94b8ca530a983dacc78bd165fa2afb95205cb0 (patch)
treec160478aa043c4d67b2626b7d43c51067a79422e /monitor.c
parentb49ca72dd7c6157324656694a924ad1d781e2916 (diff)
downloadqemu-8a94b8ca530a983dacc78bd165fa2afb95205cb0.zip
qemu-8a94b8ca530a983dacc78bd165fa2afb95205cb0.tar.gz
qemu-8a94b8ca530a983dacc78bd165fa2afb95205cb0.tar.bz2
monitor: Fix "info mem" to print the last memory range
"info mem" groups its output into contiguous ranges with identical protection bits, but previously forgot to print the last range. Signed-off-by: Austin Clements <amdragon@mit.edu> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index d049923..d1f03e4 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2260,6 +2260,8 @@ static void mem_info_32(Monitor *mon, CPUState *env)
mem_print(mon, &start, &last_prot, end, prot);
}
}
+ /* Flush last range */
+ mem_print(mon, &start, &last_prot, (target_phys_addr_t)1 << 32, 0);
}
static void mem_info_pae32(Monitor *mon, CPUState *env)
@@ -2313,6 +2315,8 @@ static void mem_info_pae32(Monitor *mon, CPUState *env)
mem_print(mon, &start, &last_prot, end, prot);
}
}
+ /* Flush last range */
+ mem_print(mon, &start, &last_prot, (target_phys_addr_t)1 << 32, 0);
}
@@ -2387,6 +2391,8 @@ static void mem_info_64(Monitor *mon, CPUState *env)
mem_print(mon, &start, &last_prot, end, prot);
}
}
+ /* Flush last range */
+ mem_print(mon, &start, &last_prot, (target_phys_addr_t)1 << 48, 0);
}
#endif