aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-10-08 11:53:46 +0200
committerJuan Quintela <quintela@redhat.com>2014-01-13 14:04:53 +0100
commita1390db4df32ad95bf7854944180d2343f7f6368 (patch)
tree1629612a9ea08c5268e5a1c18cb86525bfe2148b /include
parent06567942e5e92cc649b608205d5d31ff3ac21c58 (diff)
downloadqemu-a1390db4df32ad95bf7854944180d2343f7f6368.zip
qemu-a1390db4df32ad95bf7854944180d2343f7f6368.tar.gz
qemu-a1390db4df32ad95bf7854944180d2343f7f6368.tar.bz2
memory: create function to set a single dirty bit
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/exec/memory-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index c71a5e6..4ebab80 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -76,6 +76,12 @@ static inline void cpu_physical_memory_set_dirty_flags(ram_addr_t addr,
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)
+{
+ ram_list.phys_dirty[addr >> TARGET_PAGE_BITS] |= dirty_flag;
+}
+
static inline void cpu_physical_memory_set_dirty(ram_addr_t addr)
{
cpu_physical_memory_set_dirty_flags(addr, 0xff);