Commit b5fc909e020fa97891ed92b0f3118efe9d35ecd7
1 parent
74c11e55
Fix rounding error.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4615 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
exec.c
... | ... | @@ -243,7 +243,7 @@ static void page_init(void) |
243 | 243 | (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1); |
244 | 244 | endaddr = MIN(endaddr, |
245 | 245 | (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1); |
246 | - page_set_flags(TARGET_PAGE_ALIGN(startaddr), | |
246 | + page_set_flags(startaddr & TARGET_PAGE_MASK, | |
247 | 247 | TARGET_PAGE_ALIGN(endaddr), |
248 | 248 | PAGE_RESERVED); |
249 | 249 | } | ... | ... |