All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] translate-all.c: fix debug memory maps printing
@ 2014-08-11 10:28 Mikhail Ilyin
  2014-08-25 11:45 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Mikhail Ilyin @ 2014-08-11 10:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: Mikhail Ilyin, peter.maydell, mst, pbonzini, afaerber, rth

Fix memory maps textualizing function. The output was not correct because of
wrong base address calculation. The initial address has to be shifted also
for TARGET_PAGE_BITS.

Signed-off-by: Mikhail Ilyin <m.ilin@samsung.com>
---
 translate-all.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/translate-all.c b/translate-all.c
index 8f7e11b..cb7a33d 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -1728,9 +1728,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) {
             return rc;
         }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-05  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 10:28 [Qemu-devel] [PATCH] translate-all.c: fix debug memory maps printing Mikhail Ilyin
2014-08-25 11:45 ` Paolo Bonzini
2014-08-25 12:05   ` Paolo Bonzini
2014-09-05  8:59     ` Mikhail Ilin
2014-09-05  9:09       ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.