diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-02-10 14:09:09 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-02-10 14:09:09 +0000 |
commit | 623e265c6b1ad09fccecaa53f8c8a1fd572c54c7 (patch) | |
tree | b9bd715c57787f5c40bd45fd7c18bec42cda86ee /translate-all.c | |
parent | b2a5160c9f11cc5fe64230a6ec8f95e3aecfeacf (diff) |
Simplify TCG relocation bugfix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3974 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/translate-all.c b/translate-all.c index 2000083d85..f100a98258 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 */ |