diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-04-07 20:28:23 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-04-27 13:04:18 +0400 |
commit | eb6282f230b75eca057dd3b3027f1bfa100bef9c (patch) | |
tree | 3e4760b4bcdd73841abf29638c4f3766ca478e60 /cpus.c | |
parent | 411f491e0af173cf8f39347574941bd26fbae381 (diff) |
misc: Use cpu_physical_memory_read and cpu_physical_memory_write
These functions don't need type casts (as does cpu_physical_memory_rw)
and also make the code better readable.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1454,7 +1454,7 @@ void qmp_pmemsave(int64_t addr, int64_t size, const char *filename, l = sizeof(buf); if (l > size) l = size; - cpu_physical_memory_rw(addr, buf, l, 0); + cpu_physical_memory_read(addr, buf, l); if (fwrite(buf, 1, l, f) != l) { error_set(errp, QERR_IO_ERROR); goto exit; |