aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-27 23:53:45 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-27 23:53:45 +0000
commit72fb7daa9ab6d3b55ca0dec126a2cd9e2bde7a8c (patch)
treeff086a4d33574f3a46a3f8837978c84bf4878aed /exec.c
parentdc1c0b749fac857b8abb864577cc3f6d7a5279a1 (diff)
downloadqemu-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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/exec.c b/exec.c
index d011cce..c556de0 100644
--- a/exec.c
+++ b/exec.c
@@ -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;