提交 a5cdf952 编写于 作者: B blueswir1

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
上级 ad1a897e
...@@ -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,
iommu_bad_addr(opaque, page, is_write); iommu_bad_addr(opaque, page, is_write);
return; return;
} }
cpu_physical_memory_write(phys_addr, buf, len); cpu_physical_memory_write(phys_addr, buf, l);
} else { } else {
cpu_physical_memory_read(phys_addr, buf, len); cpu_physical_memory_read(phys_addr, buf, l);
} }
len -= l; len -= l;
buf += l; buf += l;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册