From a2f4d5bef2cfde557d76fc45a40d2c89b6bed4e4 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 10 Oct 2013 11:49:53 +0200 Subject: memory: make cpu_physical_memory_reset_dirty() take a length parameter We have an end parameter in all the callers, and this make it coherent with the rest of cpu_physical_memory_* functions, that also take a length parameter. Once here, move the start/end calculation to tlb_reset_dirty_range_all() as we don't need it here anymore. Signed-off-by: Juan Quintela Reviewed-by: Eric Blake Reviewed-by: Orit Wasserman --- cputlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cputlb.c') diff --git a/cputlb.c b/cputlb.c index eab91d7b5e..0ac8d90a48 100644 --- a/cputlb.c +++ b/cputlb.c @@ -112,8 +112,7 @@ void tlb_flush_page(CPUArchState *env, target_ulong addr) can be detected */ void tlb_protect_code(ram_addr_t ram_addr) { - cpu_physical_memory_reset_dirty(ram_addr, - ram_addr + TARGET_PAGE_SIZE, + cpu_physical_memory_reset_dirty(ram_addr, TARGET_PAGE_SIZE, DIRTY_MEMORY_CODE); } -- cgit v1.2.1