Commit a607922c75ed66f4583bdfc5d131b386ecd7ddad
1 parent
bf6247fb
fixed do_restore_state()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4413 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
5 deletions
target-mips/op_helper.c
| ... | ... | @@ -50,11 +50,13 @@ void do_raise_exception (uint32_t exception) |
| 50 | 50 | |
| 51 | 51 | void do_restore_state (void *pc_ptr) |
| 52 | 52 | { |
| 53 | - TranslationBlock *tb; | |
| 54 | - unsigned long pc = (unsigned long) pc_ptr; | |
| 55 | - | |
| 56 | - tb = tb_find_pc (pc); | |
| 57 | - cpu_restore_state (tb, env, pc, NULL); | |
| 53 | + TranslationBlock *tb; | |
| 54 | + unsigned long pc = (unsigned long) pc_ptr; | |
| 55 | + | |
| 56 | + tb = tb_find_pc (pc); | |
| 57 | + if (tb) { | |
| 58 | + cpu_restore_state (tb, env, pc, NULL); | |
| 59 | + } | |
| 58 | 60 | } |
| 59 | 61 | |
| 60 | 62 | void do_raise_exception_direct_err (uint32_t exception, int error_code) | ... | ... |