* [Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_regions_1() not a page index.
@ 2014-01-27 16:16 Huw Davies
0 siblings, 0 replies; only message in thread
From: Huw Davies @ 2014-01-27 16:16 UTC (permalink / raw)
To: qemu-devel; +Cc: afaerber
Signed-off-by: Huw Davies <huw@codeweavers.com>
---
translate-all.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/translate-all.c b/translate-all.c
index 105c25a..e7ed09c 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -1641,7 +1641,8 @@ int walk_memory_regions(void *priv, walk_memory_regions_fn fn)
data.prot = 0;
for (i = 0; i < V_L1_SIZE; i++) {
- int rc = walk_memory_regions_1(&data, (abi_ulong)i << V_L1_SHIFT,
+ int rc = walk_memory_regions_1(&data,
+ (abi_ulong)i << (V_L1_SHIFT + TARGET_PAGE_BITS),
V_L1_SHIFT / V_L2_BITS - 1, l1_map + i);
if (rc != 0) {
--
1.8.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-27 16:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 16:16 [Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_regions_1() not a page index Huw Davies
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).