[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/38] exec: use accessor function to know if memory
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 04/38] exec: use accessor function to know if memory is dirty |
Date: |
Tue, 17 Dec 2013 16:25:40 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Orit Wasserman <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exec.c b/exec.c
index 00526d1..8800f8e 100644
--- a/exec.c
+++ b/exec.c
@@ -1507,7 +1507,7 @@ static void notdirty_mem_write(void *opaque, hwaddr
ram_addr,
cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags);
/* we remove the notdirty callback only if the code has been
flushed */
- if (dirty_flags == 0xff) {
+ if (cpu_physical_memory_is_dirty(ram_addr)) {
CPUArchState *env = current_cpu->env_ptr;
tlb_set_dirty(env, env->mem_io_vaddr);
}
--
1.8.3.1
- [Qemu-devel] [PATCH v3 00/38] bitmap queue, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 02/38] memory: cpu_physical_memory_set_dirty_flags() result is never used, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 03/38] memory: cpu_physical_memory_set_dirty_range() return void, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 01/38] bitmap: use long as index, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 04/38] exec: use accessor function to know if memory is dirty,
Juan Quintela <=
- [Qemu-devel] [PATCH 05/38] memory: create function to set a single dirty bit, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 06/38] exec: create function to get a single dirty bit, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 07/38] memory: make cpu_physical_memory_is_dirty return bool, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 08/38] memory: all users of cpu_physical_memory_get_dirty used only one flag, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 09/38] memory: set single dirty flags when possible, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 10/38] memory: cpu_physical_memory_set_dirty_range() always dirty all flags, Juan Quintela, 2013/12/17