Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDlWd-0002cD-8c for qemu-devel@nongnu.org; Tue, 01 Jul 2008 15:28:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDlWc-0002bP-20 for qemu-devel@nongnu.org; Tue, 01 Jul 2008 15:28:26 -0400 Received: from [199.232.76.173] (port=59626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDlWb-0002bM-T7 for qemu-devel@nongnu.org; Tue, 01 Jul 2008 15:28:25 -0400 Received: from savannah.gnu.org ([199.232.41.3]:60724 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 1KDlWc-0006fS-91 for qemu-devel@nongnu.org; Tue, 01 Jul 2008 15:28:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KDlWb-0004VN-3g for qemu-devel@nongnu.org; Tue, 01 Jul 2008 19:28:25 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KDlWa-0004V5-Pk for qemu-devel@nongnu.org; Tue, 01 Jul 2008 19:28:25 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Tue, 01 Jul 2008 19:28:24 +0000 Subject: [Qemu-devel] [4816] Fix DMA length bug seen with NetBSD (Cliff Wright) 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: 4816 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4816 Author: blueswir1 Date: 2008-07-01 19:28:23 +0000 (Tue, 01 Jul 2008) Log Message: ----------- Fix DMA length bug seen with NetBSD (Cliff Wright) Modified Paths: -------------- trunk/hw/iommu.c Modified: trunk/hw/iommu.c =================================================================== --- trunk/hw/iommu.c 2008-07-01 16:44:58 UTC (rev 4815) +++ trunk/hw/iommu.c 2008-07-01 19:28:23 UTC (rev 4816) @@ -301,9 +301,9 @@ iommu_bad_addr(opaque, page, is_write); return; } - cpu_physical_memory_write(phys_addr, buf, len); + cpu_physical_memory_write(phys_addr, buf, l); } else { - cpu_physical_memory_read(phys_addr, buf, len); + cpu_physical_memory_read(phys_addr, buf, l); } len -= l; buf += l;