qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] A bit optimization for tlb_set_page()
@ 2010-04-27  3:25 Jun Koi
  2010-04-27 18:36 ` [Qemu-devel] " Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Jun Koi @ 2010-04-27  3:25 UTC (permalink / raw)
  To: qemu-devel

It is not necessary to continue searching for watchpoint when we
already found one and setup for handling watchpoint in a search loop
in tlb_set_page().
This patch breaks that search loop on then.

Signed-off-by: Jun Koi <junkoi2004@gmail.com>

diff --git a/exec.c b/exec.c
index 14d1fd7..6329775 100644
--- a/exec.c
+++ b/exec.c
@@ -2240,6 +2240,7 @@ void tlb_set_page(CPUState *env, target_ulong vaddr,
             /* TODO: The memory case can be optimized by not trapping
                reads of pages with a write breakpoint.  */
             address |= TLB_MMIO;
+            break;
         }
     }

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-30  6:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27  3:25 [Qemu-devel] [PATCH] A bit optimization for tlb_set_page() Jun Koi
2010-04-27 18:36 ` [Qemu-devel] " Jan Kiszka
2010-04-27 23:48   ` Jun Koi
2010-04-28  2:52     ` Jun Koi
2010-04-28  6:53       ` Jan Kiszka
2010-04-28  7:13         ` Jun Koi
2010-04-30  6:44           ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).