summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-10-08 12:31:54 +0200
committerJuan Quintela <quintela@redhat.com>2014-01-13 14:04:53 +0100
commit75218e7f2b7f052c6f44489afaf45b3ea4369f45 (patch)
tree32f814987897c10fb39e0b646308404ec25760c0 /include
parent63995cebfaa283586682ea6236c9686b2a49ece7 (diff)
downloadqemu-75218e7f2b7f052c6f44489afaf45b3ea4369f45.tar.gz
qemu-75218e7f2b7f052c6f44489afaf45b3ea4369f45.tar.bz2
qemu-75218e7f2b7f052c6f44489afaf45b3ea4369f45.zip
memory: cpu_physical_memory_set_dirty_range() always dirty all flags
So remove the flag argument and do it directly. After this change, there is nothing else using cpu_physical_memory_set_dirty_flags() so remove it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/exec/memory-internal.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index 9f4ad697b3..681d63b7ba 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -75,12 +75,6 @@ static inline int cpu_physical_memory_get_dirty(ram_addr_t start,
return ret;
}
-static inline void cpu_physical_memory_set_dirty_flags(ram_addr_t addr,
- int dirty_flags)
-{
- ram_list.phys_dirty[addr >> TARGET_PAGE_BITS] |= dirty_flags;
-}
-
static inline void cpu_physical_memory_set_dirty_flag(ram_addr_t addr,
int dirty_flag)
{
@@ -103,15 +97,14 @@ static inline int cpu_physical_memory_clear_dirty_flags(ram_addr_t addr,
}
static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start,
- ram_addr_t length,
- int dirty_flags)
+ ram_addr_t length)
{
ram_addr_t addr, end;
end = TARGET_PAGE_ALIGN(start + length);
start &= TARGET_PAGE_MASK;
for (addr = start; addr < end; addr += TARGET_PAGE_SIZE) {
- cpu_physical_memory_set_dirty_flags(addr, dirty_flags);
+ cpu_physical_memory_set_dirty(addr);
}
xen_modified_memory(addr, length);
}