qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [4615] Fix rounding error.


From: Paul Brook
Subject: [Qemu-devel] [4615] Fix rounding error.
Date: Thu, 29 May 2008 13:56:11 +0000

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
===================================================================
--- trunk/exec.c        2008-05-29 13:49:09 UTC (rev 4614)
+++ trunk/exec.c        2008-05-29 13:56:10 UTC (rev 4615)
@@ -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); 
                 }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]