qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] TCG: Fix TB invalidation after breakpoint insertion/deletion
@ 2012-05-24  2:34 Jan Kiszka
  2012-05-24  2:44 ` Jan Kiszka
  2012-05-24 10:51 ` Max Filippov
  0 siblings, 2 replies; 17+ messages in thread
From: Jan Kiszka @ 2012-05-24  2:34 UTC (permalink / raw)
  To: qemu-devel, Blue Swirl; +Cc: Max Filippov, Avi Kivity, TeLeMan

[-- Attachment #1: Type: text/plain, Size: 927 bytes --]

From: Jan Kiszka <jan.kiszka@siemens.com>

tb_invalidate_phys_addr has to called with the exact physical address of
the breakpoint we add/remove, not just the page's base address.
Otherwise we easily fail to flush the right TB.

Regression of 1e7855a558.

Reported-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 exec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/exec.c b/exec.c
index a0494c7..efa1345 100644
--- a/exec.c
+++ b/exec.c
@@ -1492,7 +1492,8 @@ void tb_invalidate_phys_addr(target_phys_addr_t addr)
 
 static void breakpoint_invalidate(CPUArchState *env, target_ulong pc)
 {
-    tb_invalidate_phys_addr(cpu_get_phys_page_debug(env, pc));
+    tb_invalidate_phys_addr(cpu_get_phys_page_debug(env, pc) +
+                            (pc & ~TARGET_PAGE_MASK));
 }
 #endif
 #endif /* TARGET_HAS_ICE */
-- 
1.7.3.4


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

end of thread, other threads:[~2012-05-28 12:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24  2:34 [Qemu-devel] [PATCH] TCG: Fix TB invalidation after breakpoint insertion/deletion Jan Kiszka
2012-05-24  2:44 ` Jan Kiszka
2012-05-24 10:51 ` Max Filippov
2012-05-24 11:25   ` Jan Kiszka
2012-05-24 12:08     ` Max Filippov
2012-05-24 12:16       ` Jan Kiszka
2012-05-24 12:42         ` Max Filippov
2012-05-24 13:26           ` Jan Kiszka
2012-05-24 14:11             ` Max Filippov
2012-05-24 14:21               ` Jan Kiszka
2012-05-24 14:29                 ` Max Filippov
2012-05-24 14:34                   ` Jan Kiszka
2012-05-24 14:26               ` Avi Kivity
2012-05-24 19:58                 ` Max Filippov
2012-05-28  9:34                   ` Avi Kivity
2012-05-28 11:54                     ` Max Filippov
2012-05-28 12:04                       ` Avi Kivity

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).