From 623e265c6b1ad09fccecaa53f8c8a1fd572c54c7 Mon Sep 17 00:00:00 2001 From: pbrook Date: Sun, 10 Feb 2008 14:09:09 +0000 Subject: Simplify TCG relocation bugfix. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3974 c046a42c-6fe2-441c-8c8c-71466251a162 --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'translate-all.c') diff --git a/translate-all.c b/translate-all.c index 2000083..f100a98 100644 --- a/translate-all.c +++ b/translate-all.c @@ -187,7 +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, searched_pc - tc_ptr); + j = dyngen_code_search_pc(s, (uint8_t *)tc_ptr, searched_pc - tc_ptr); if (j < 0) return -1; /* now find start of instruction before */ -- cgit v1.1