From: Huw Davies <huw@codeweavers.com>
To: qemu-devel@nongnu.org
Cc: afaerber@suse.de
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 [thread overview]
Message-ID: <1390839401-20042-1-git-send-email-huw@codeweavers.com> (raw)
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
reply other threads:[~2014-01-27 16:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390839401-20042-1-git-send-email-huw@codeweavers.com \
--to=huw@codeweavers.com \
--cc=afaerber@suse.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).