diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-21 13:54:33 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-01-04 13:34:48 +0200 |
commit | dc94a7ed615391219ef3ebc3705d24b5ed0e2364 (patch) | |
tree | c95fe74b0e804f400275f8c8dbba6b9ac5e5bdd8 /arch_init.c | |
parent | f09f2189d51b405bb1e390beeb0ccf155ab2e788 (diff) |
Convert ram_load() to the memory API
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch_init.c b/arch_init.c index bb2f263d93..de1886ba26 100644 --- a/arch_init.c +++ b/arch_init.c @@ -344,7 +344,7 @@ static inline void *host_from_stream_offset(QEMUFile *f, return NULL; } - return block->host + offset; + return memory_region_get_ram_ptr(block->mr) + offset; } len = qemu_get_byte(f); @@ -353,7 +353,7 @@ static inline void *host_from_stream_offset(QEMUFile *f, QLIST_FOREACH(block, &ram_list.blocks, next) { if (!strncmp(id, block->idstr, sizeof(id))) - return block->host + offset; + return memory_region_get_ram_ptr(block->mr) + offset; } fprintf(stderr, "Can't find block %s!\n", id); |