Commit a5cdf952204931960bbb269494469843be789b52
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 | 301 | iommu_bad_addr(opaque, page, is_write); |
302 | 302 | return; |
303 | 303 | } |
304 | - cpu_physical_memory_write(phys_addr, buf, len); | |
304 | + cpu_physical_memory_write(phys_addr, buf, l); | |
305 | 305 | } else { |
306 | - cpu_physical_memory_read(phys_addr, buf, len); | |
306 | + cpu_physical_memory_read(phys_addr, buf, l); | |
307 | 307 | } |
308 | 308 | len -= l; |
309 | 309 | buf += l; | ... | ... |