Skip to content

Commit

Permalink
kqemu_set_notdirty() opt
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1560 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
bellard committed Aug 21, 2005
1 parent f23db16 commit fc8dc06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kqemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ void kqemu_set_notdirty(CPUState *env, ram_addr_t ram_addr)
fprintf(logfile, "kqemu_set_notdirty: addr=%08lx\n", ram_addr);
}
#endif
/* we only track transitions to dirty state */
if (phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] != 0xff)
return;
if (nb_ram_pages_to_update >= KQEMU_MAX_RAM_PAGES_TO_UPDATE)
nb_ram_pages_to_update = KQEMU_RAM_PAGES_UPDATE_ALL;
else
Expand Down

0 comments on commit fc8dc06

Please sign in to comment.