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
This commit is contained in:
parent
ad1a897e52
commit
a5cdf95220
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user