aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-11 18:30:24 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-11 18:30:24 +0000
commit9746b15b4ecd4702410a2769f6d18a67dbd0872d (patch)
treeb6e5c102240226f31a3a878add4fad57d9b9dcc8 /monitor.c
parent7372f88dc171775c2918b3a874edf0a1d5266b19 (diff)
downloadqemu-9746b15b4ecd4702410a2769f6d18a67dbd0872d.zip
qemu-9746b15b4ecd4702410a2769f6d18a67dbd0872d.tar.gz
qemu-9746b15b4ecd4702410a2769f6d18a67dbd0872d.tar.bz2
'info mem' monitor command fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1134 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index ee19128..bb21246 100644
--- a/monitor.c
+++ b/monitor.c
@@ -764,13 +764,15 @@ static void tlb_info(void)
static void mem_print(uint32_t *pstart, int *plast_prot,
uint32_t end, int prot)
{
- if (prot != *plast_prot) {
+ int prot1;
+ prot1 = *plast_prot;
+ if (prot != prot1) {
if (*pstart != -1) {
term_printf("%08x-%08x %08x %c%c%c\n",
*pstart, end, end - *pstart,
- prot & PG_USER_MASK ? 'u' : '-',
+ prot1 & PG_USER_MASK ? 'u' : '-',
'r',
- prot & PG_RW_MASK ? 'w' : '-');
+ prot1 & PG_RW_MASK ? 'w' : '-');
}
if (prot != 0)
*pstart = end;