Revision 7296abac exec.c
b/exec.c | ||
---|---|---|
642 | 642 |
} |
643 | 643 |
if (level == 0) { |
644 | 644 |
PageDesc *pd = *lp; |
645 |
for (i = 0; i < L2_BITS; ++i) {
|
|
645 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
646 | 646 |
pd[i].first_tb = NULL; |
647 | 647 |
invalidate_page_bitmap(pd + i); |
648 | 648 |
} |
649 | 649 |
} else { |
650 | 650 |
void **pp = *lp; |
651 |
for (i = 0; i < L2_BITS; ++i) {
|
|
651 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
652 | 652 |
page_flush_tb_1 (level - 1, pp + i); |
653 | 653 |
} |
654 | 654 |
} |
... | ... | |
1723 | 1723 |
} |
1724 | 1724 |
if (level == 0) { |
1725 | 1725 |
PhysPageDesc *pd = *lp; |
1726 |
for (i = 0; i < L2_BITS; ++i) {
|
|
1726 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
1727 | 1727 |
if (pd[i].phys_offset != IO_MEM_UNASSIGNED) { |
1728 | 1728 |
client->set_memory(client, pd[i].region_offset, |
1729 | 1729 |
TARGET_PAGE_SIZE, pd[i].phys_offset); |
... | ... | |
1731 | 1731 |
} |
1732 | 1732 |
} else { |
1733 | 1733 |
void **pp = *lp; |
1734 |
for (i = 0; i < L2_BITS; ++i) {
|
|
1734 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
1735 | 1735 |
phys_page_for_each_1(client, level - 1, pp + i); |
1736 | 1736 |
} |
1737 | 1737 |
} |
... | ... | |
2244 | 2244 |
|
2245 | 2245 |
if (level == 0) { |
2246 | 2246 |
PageDesc *pd = *lp; |
2247 |
for (i = 0; i < L2_BITS; ++i) {
|
|
2247 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
2248 | 2248 |
int prot = pd[i].flags; |
2249 | 2249 |
|
2250 | 2250 |
pa = base | (i << TARGET_PAGE_BITS); |
... | ... | |
2257 | 2257 |
} |
2258 | 2258 |
} else { |
2259 | 2259 |
void **pp = *lp; |
2260 |
for (i = 0; i < L2_BITS; ++i) {
|
|
2260 |
for (i = 0; i < L2_SIZE; ++i) {
|
|
2261 | 2261 |
pa = base | ((abi_ulong)i << |
2262 | 2262 |
(TARGET_PAGE_BITS + L2_BITS * level)); |
2263 | 2263 |
rc = walk_memory_regions_1(data, pa, level - 1, pp + i); |
Also available in: Unified diff