Skip to contentSkip to conversation

[4615] Fix rounding error.

Qemu-devel Paul Brook 1 participant 1 message May 29, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4615

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4615
Author:   pbrook
Date:     2008-05-29 13:56:10 +0000 (Thu, 29 May 2008)

Log Message:
-----------
Fix rounding error.

Modified Paths:
--------------
trunk/exec.c

Modified: trunk/exec.c
===================================================================

exec.c +1 -1
@@ -243,7 +243,7 @@
                                     (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1);
                     endaddr = MIN(endaddr,
                                     (1ULL << TARGET_PHYS_ADDR_SPACE_BITS) - 1);
-                    page_set_flags(TARGET_PAGE_ALIGN(startaddr),
+                    page_set_flags(startaddr & TARGET_PAGE_MASK,
                                    TARGET_PAGE_ALIGN(endaddr),
                                    PAGE_RESERVED); 
                 }