From 2cfc5f17d366b801484b36b548708fe0f3552737 Mon Sep 17 00:00:00 2001 From: ths Date: Fri, 18 Jul 2008 18:01:29 +0000 Subject: 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 --- target-i386/translate.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'target-i386') diff --git a/target-i386/translate.c b/target-i386/translate.c index 7dc317171a..c4a119543a 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -7148,9 +7148,9 @@ void optimize_flags_init(void) /* generate intermediate code in gen_opc_buf and gen_opparam_buf for basic block 'tb'. If search_pc is TRUE, also generate PC information for each intermediate instruction. */ -static inline int gen_intermediate_code_internal(CPUState *env, - TranslationBlock *tb, - int search_pc) +static inline void gen_intermediate_code_internal(CPUState *env, + TranslationBlock *tb, + int search_pc) { DisasContext dc1, *dc = &dc1; target_ulong pc_ptr; @@ -7321,17 +7321,16 @@ static inline int gen_intermediate_code_internal(CPUState *env, tb->size = pc_ptr - pc_start; tb->icount = num_insns; } - return 0; } -int gen_intermediate_code(CPUState *env, TranslationBlock *tb) +void gen_intermediate_code(CPUState *env, TranslationBlock *tb) { - return gen_intermediate_code_internal(env, tb, 0); + gen_intermediate_code_internal(env, tb, 0); } -int gen_intermediate_code_pc(CPUState *env, TranslationBlock *tb) +void gen_intermediate_code_pc(CPUState *env, TranslationBlock *tb) { - return gen_intermediate_code_internal(env, tb, 1); + gen_intermediate_code_internal(env, tb, 1); } void gen_pc_load(CPUState *env, TranslationBlock *tb, -- cgit v1.2.3