sim-card
/
qemu
Archived
10
0
Fork 0

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>
This commit is contained in:
Austin Clements 2011-08-14 23:22:04 -04:00 committed by Blue Swirl
parent b49ca72dd7
commit 8a94b8ca53
1 changed files with 6 additions and 0 deletions

View File

@ -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