aboutsummaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-18 18:01:29 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-18 18:01:29 +0000
commit2cfc5f17d366b801484b36b548708fe0f3552737 (patch)
treebf35a5924a55035f6a44089943a0b5dccae32d09 /translate-all.c
parentd1b5c20dcde176df50f1955e498af252e87a3e9d (diff)
Small cleanup of gen_intermediate_code(_internal), by Laurent Desnogues.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4891 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c8
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. */