From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7osM-0003fq-EZ for qemu-devel@nongnu.org; Mon, 27 Jan 2014 11:17:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7osG-0005wv-G8 for qemu-devel@nongnu.org; Mon, 27 Jan 2014 11:17:30 -0500 Received: from mail.codeweavers.com ([216.251.189.131]:47619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7osG-0005dK-BF for qemu-devel@nongnu.org; Mon, 27 Jan 2014 11:17:24 -0500 From: Huw Davies Date: Mon, 27 Jan 2014 16:16:41 +0000 Message-Id: <1390839401-20042-1-git-send-email-huw@codeweavers.com> Subject: [Qemu-devel] [PATCH] memory: Pass a target address to walk_memory_regions_1() not a page index. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: afaerber@suse.de Signed-off-by: Huw Davies --- 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