mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
63995cebfa
commit
75218e7f2b
3 changed files with 4 additions and 11 deletions
2
memory.c
2
memory.c
|
@ -1182,7 +1182,7 @@ void memory_region_set_dirty(MemoryRegion *mr, hwaddr addr,
|
|||
hwaddr size)
|
||||
{
|
||||
assert(mr->terminates);
|
||||
cpu_physical_memory_set_dirty_range(mr->ram_addr + addr, size, -1);
|
||||
cpu_physical_memory_set_dirty_range(mr->ram_addr + addr, size);
|
||||
}
|
||||
|
||||
bool memory_region_test_and_clear_dirty(MemoryRegion *mr, hwaddr addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue