diff options
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/translate-all.c b/translate-all.c index 9639612..2000083 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 */ |