diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 19:28:23 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 19:28:23 +0000 |
commit | a5cdf952204931960bbb269494469843be789b52 (patch) | |
tree | 15c2d657bebb3f4e3ae45cb4a7f2c6f3a1cbd19a /hw/iommu.c | |
parent | ad1a897e52d6928c3d2b98dec69d765bfc2d1121 (diff) |
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
Diffstat (limited to 'hw/iommu.c')
-rw-r--r-- | hw/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/iommu.c b/hw/iommu.c index 0879df95fa..fe6911e5e0 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -301,9 +301,9 @@ void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr, 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; |