From: Austin Clements Date: Mon, 15 Aug 2011 03:22:04 +0000 (-0400) Subject: monitor: Fix "info mem" to print the last memory range X-Git-Tag: v1.0-rc0~476 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8a94b8ca530a983dacc78bd165fa2afb95205cb0;p=qemu-xen-unstable.git 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 Signed-off-by: Blue Swirl --- diff --git a/monitor.c b/monitor.c index d0499233e5..d1f03e4a98 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