Commit a5cdf952204931960bbb269494469843be789b52

Authored by blueswir1
1 parent ad1a897e

Fix DMA length bug seen with NetBSD (Cliff Wright)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4816 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
hw/iommu.c
@@ -301,9 +301,9 @@ void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr, @@ -301,9 +301,9 @@ void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr,
301 iommu_bad_addr(opaque, page, is_write); 301 iommu_bad_addr(opaque, page, is_write);
302 return; 302 return;
303 } 303 }
304 - cpu_physical_memory_write(phys_addr, buf, len); 304 + cpu_physical_memory_write(phys_addr, buf, l);
305 } else { 305 } else {
306 - cpu_physical_memory_read(phys_addr, buf, len); 306 + cpu_physical_memory_read(phys_addr, buf, l);
307 } 307 }
308 len -= l; 308 len -= l;
309 buf += l; 309 buf += l;