[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_region
From: |
Huw Davies |
Subject: |
[Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_regions_1() not a page index. |
Date: |
Mon, 27 Jan 2014 16:16:41 +0000 |
Signed-off-by: Huw Davies <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_regions_1() not a page index.,
Huw Davies <=