mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
accel/tcg: Use vaddr for walk_memory_regions callback
Use vaddr instead of target_ulong. At the same time, use int instead of unsigned long for flags, to match page_set_flags(). Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
54bd0b135e
commit
e1c8eb8cfe
4 changed files with 20 additions and 22 deletions
|
@ -199,13 +199,13 @@ int walk_memory_regions(void *priv, walk_memory_regions_fn fn)
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int dump_region(void *priv, target_ulong start,
|
||||
target_ulong end, unsigned long prot)
|
||||
static int dump_region(void *opaque, vaddr start, vaddr end, int prot)
|
||||
{
|
||||
FILE *f = (FILE *)priv;
|
||||
FILE *f = opaque;
|
||||
|
||||
fprintf(f, TARGET_FMT_lx"-"TARGET_FMT_lx" "TARGET_FMT_lx" %c%c%c\n",
|
||||
start, end, end - start,
|
||||
fprintf(f, TARGET_ABI_FMT_ptr "-" TARGET_ABI_FMT_ptr
|
||||
" " TARGET_ABI_FMT_ptr " %c%c%c\n",
|
||||
(abi_ptr)start, (abi_ptr)end, (abi_ptr)(end - start),
|
||||
((prot & PAGE_READ) ? 'r' : '-'),
|
||||
((prot & PAGE_WRITE) ? 'w' : '-'),
|
||||
((prot & PAGE_EXEC) ? 'x' : '-'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue