diff options
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/translate-all.c b/translate-all.c index 263649578b..1c27fd3296 100644 --- a/translate-all.c +++ b/translate-all.c @@ -94,9 +94,8 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) #endif tcg_func_start(s); - if (gen_intermediate_code(env, tb) < 0) - return -1; - + gen_intermediate_code(env, tb); + /* generate machine code */ gen_code_buf = tb->tc_ptr; tb->tb_next_offset[0] = 0xffff; @@ -156,8 +155,7 @@ int cpu_restore_state(TranslationBlock *tb, #endif tcg_func_start(s); - if (gen_intermediate_code_pc(env, tb) < 0) - return -1; + gen_intermediate_code_pc(env, tb); if (use_icount) { /* Reset the cycle counter to the start of the block. */ |