aboutsummaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-15 16:24:49 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:07 +0200
commit86e775c654b775d3e295e8a33bb03cc03bdab68d (patch)
treed9be19c7f6d72dbe973f9d9a7f0d8df74c285580 /arch_init.c
parentc1cd0b2c5131f24504d4513c4160cec73d53b326 (diff)
memory: replace cpu_physical_sync_dirty_bitmap() with a memory API
The function is still used as the implementation. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r--arch_init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch_init.c b/arch_init.c
index a411fdf263..ceef26ef17 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -41,6 +41,7 @@
#include "net.h"
#include "gdbstub.h"
#include "hw/smbios.h"
+#include "exec-memory.h"
#ifdef TARGET_SPARC
int graphic_width = 1024;
@@ -263,10 +264,7 @@ int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque)
return 0;
}
- if (cpu_physical_sync_dirty_bitmap(0, TARGET_PHYS_ADDR_MAX) != 0) {
- qemu_file_set_error(f, -EINVAL);
- return -EINVAL;
- }
+ memory_global_sync_dirty_bitmap(get_system_memory());
if (stage == 1) {
RAMBlock *block;