提交 8a94b8ca 编写于 作者: A Austin Clements 提交者: Blue Swirl

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: NAustin Clements <amdragon@mit.edu>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 b49ca72d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册