]> Git Repo - qemu.git/blobdiff - target-i386/arch_memory_mapping.c
target-i386: Fix mask of pte index in memory mapping
[qemu.git] / target-i386 / arch_memory_mapping.c
index 24884bd482ddcbf1ba243fb031e82f6c0e45ae21..5096fbdf443681d17d6d0a799bb4eab80145c900 100644 (file)
@@ -38,7 +38,7 @@ static void walk_pte(MemoryMappingList *list, hwaddr pte_start_addr,
             continue;
         }
 
-        start_vaddr = start_line_addr | ((i & 0x1fff) << 12);
+        start_vaddr = start_line_addr | ((i & 0x1ff) << 12);
         memory_mapping_list_add_merge_sorted(list, start_paddr,
                                              start_vaddr, 1 << 12);
     }
This page took 0.019721 seconds and 4 git commands to generate.