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-cris/translate.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'target-cris') diff --git a/target-cris/translate.c b/target-cris/translate.c index d971d1d2b..0c23cdf28 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3022,7 +3022,7 @@ static void check_breakpoint(CPUState *env, DisasContext *dc) */ /* generate intermediate code for basic block 'tb'. */ -static int +static void gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { @@ -3233,17 +3233,16 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, dc->pc - pc_start, gen_opc_ptr - gen_opc_buf); } #endif - return 0; } -int gen_intermediate_code (CPUState *env, struct TranslationBlock *tb) +void gen_intermediate_code (CPUState *env, struct TranslationBlock *tb) { - return gen_intermediate_code_internal(env, tb, 0); + gen_intermediate_code_internal(env, tb, 0); } -int gen_intermediate_code_pc (CPUState *env, struct TranslationBlock *tb) +void gen_intermediate_code_pc (CPUState *env, struct TranslationBlock *tb) { - return gen_intermediate_code_internal(env, tb, 1); + gen_intermediate_code_internal(env, tb, 1); } void cpu_dump_state (CPUState *env, FILE *f, -- cgit v1.2.3