aboutsummaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-10 02:41:15 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-10 02:41:15 +0000
commit2ba1eeb62c29d23238b95dc7e9ade3444b49f0a1 (patch)
tree5aff38fd46aa4f7ac75447eddf432a6ccb244cc1 /translate-all.c
parent41df841110c6102ee20faae9a172e69a5d4a7f2d (diff)
Fix TCG relocation bug (exposed by fault after brcond op). Add FIXME for
annother potential bug. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3968 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/translate-all.c b/translate-all.c
index 9639612eb7..2000083d85 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -187,8 +187,7 @@ int cpu_restore_state(TranslationBlock *tb,
s->tb_jmp_offset = NULL;
s->tb_next = tb->tb_next;
#endif
- j = dyngen_code_search_pc(s, (uint8_t *)tc_ptr,
- (void *)searched_pc);
+ j = dyngen_code_search_pc(s, searched_pc - tc_ptr);
if (j < 0)
return -1;
/* now find start of instruction before */