diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-27 23:53:45 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-27 23:53:45 +0000 |
commit | 72fb7daa9ab6d3b55ca0dec126a2cd9e2bde7a8c (patch) | |
tree | ff086a4d33574f3a46a3f8837978c84bf4878aed /exec.c | |
parent | dc1c0b749fac857b8abb864577cc3f6d7a5279a1 (diff) | |
download | qemu-72fb7daa9ab6d3b55ca0dec126a2cd9e2bde7a8c.zip qemu-72fb7daa9ab6d3b55ca0dec126a2cd9e2bde7a8c.tar.gz qemu-72fb7daa9ab6d3b55ca0dec126a2cd9e2bde7a8c.tar.bz2 |
Fix a typo in cpu_physical_memory_rw()
(Samuel Thibault)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4272 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2544,20 +2544,20 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, if (!(flags & PAGE_WRITE)) return; /* XXX: this code should not depend on lock_user */ - if (!(p = lock_user(VERIFY_WRITE, addr, len, 0))) + if (!(p = lock_user(VERIFY_WRITE, addr, l, 0))) /* FIXME - should this return an error rather than just fail? */ return; - memcpy(p, buf, len); - unlock_user(p, addr, len); + memcpy(p, buf, l); + unlock_user(p, addr, l); } else { if (!(flags & PAGE_READ)) return; /* XXX: this code should not depend on lock_user */ - if (!(p = lock_user(VERIFY_READ, addr, len, 1))) + if (!(p = lock_user(VERIFY_READ, addr, l, 1))) /* FIXME - should this return an error rather than just fail? */ return; - memcpy(buf, p, len); - unlock_user(p, addr, 0); + memcpy(buf, p, l); + unlock_user(p, addr, l); } len -= l; buf += l; |