diff options
| author | Stefan Weil | 2014-04-07 20:28:23 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2014-04-27 11:04:18 +0200 |
| commit | eb6282f230b75eca057dd3b3027f1bfa100bef9c (patch) | |
| tree | 3e4760b4bcdd73841abf29638c4f3766ca478e60 /cpus.c | |
| parent | Merge remote-tracking branch 'remotes/rth/tags/tgt-axp-pull-20140424' into st... (diff) | |
| download | qemu-eb6282f230b75eca057dd3b3027f1bfa100bef9c.tar.gz qemu-eb6282f230b75eca057dd3b3027f1bfa100bef9c.tar.xz qemu-eb6282f230b75eca057dd3b3027f1bfa100bef9c.zip | |
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; |
