From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1ic1-00044T-MF for qemu-devel@nongnu.org; Thu, 29 May 2008 09:56:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1ic0-00044D-Ee for qemu-devel@nongnu.org; Thu, 29 May 2008 09:56:12 -0400 Received: from [199.232.76.173] (port=60931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1ic0-00044A-9i for qemu-devel@nongnu.org; Thu, 29 May 2008 09:56:12 -0400 Received: from savannah.gnu.org ([199.232.41.3]:37954 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1ic0-0000Rb-2n for qemu-devel@nongnu.org; Thu, 29 May 2008 09:56:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K1ibz-0006Jp-IN for qemu-devel@nongnu.org; Thu, 29 May 2008 13:56:11 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K1ibz-0006Jl-CB for qemu-devel@nongnu.org; Thu, 29 May 2008 13:56:11 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Thu, 29 May 2008 13:56:11 +0000 Subject: [Qemu-devel] [4615] Fix rounding error. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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); }