From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsoK6-0003p4-LD for qemu-devel@nongnu.org; Sun, 14 Aug 2011 23:58:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsoK5-0002ps-IR for qemu-devel@nongnu.org; Sun, 14 Aug 2011 23:58:46 -0400 Received: from dmz-mailsec-scanner-8.mit.edu ([18.7.68.37]:43650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsoK5-0002op-Gb for qemu-devel@nongnu.org; Sun, 14 Aug 2011 23:58:45 -0400 From: Austin Clements Date: Sun, 14 Aug 2011 23:22:04 -0400 Message-Id: <1313378524-15690-1-git-send-email-amdragon@mit.edu> Subject: [Qemu-devel] [PATCH] monitor: Fix "info mem" to print the last memory range List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Austin Clements , Markus Armbruster , Luiz Capitulino "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 --- monitor.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 6a4f8c2..f8ba0ef 100644 --- a/monitor.c +++ b/monitor.c @@ -2258,6 +2258,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) @@ -2311,6 +2313,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); } @@ -2385,6 +2389,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 -- 1.7.5.4