diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-18 18:01:29 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-18 18:01:29 +0000 |
commit | 2cfc5f17d366b801484b36b548708fe0f3552737 (patch) | |
tree | bf35a5924a55035f6a44089943a0b5dccae32d09 /target-sparc | |
parent | d1b5c20dcde176df50f1955e498af252e87a3e9d (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 'target-sparc')
-rw-r--r-- | target-sparc/translate.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index aac15454d0..25842b16c8 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -4724,8 +4724,8 @@ static void disas_sparc_insn(DisasContext * dc) #endif } -static inline int gen_intermediate_code_internal(TranslationBlock * tb, - int spc, CPUSPARCState *env) +static inline void gen_intermediate_code_internal(TranslationBlock * tb, + int spc, CPUSPARCState *env) { target_ulong pc_start, last_pc; uint16_t *gen_opc_end; @@ -4869,17 +4869,16 @@ static inline int gen_intermediate_code_internal(TranslationBlock * tb, fprintf(logfile, "\n"); } #endif - return 0; } -int gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb) +void gen_intermediate_code(CPUSPARCState * env, TranslationBlock * tb) { - return gen_intermediate_code_internal(tb, 0, env); + gen_intermediate_code_internal(tb, 0, env); } -int gen_intermediate_code_pc(CPUSPARCState * env, TranslationBlock * tb) +void gen_intermediate_code_pc(CPUSPARCState * env, TranslationBlock * tb) { - return gen_intermediate_code_internal(tb, 1, env); + gen_intermediate_code_internal(tb, 1, env); } void gen_intermediate_code_init(CPUSPARCState *env) |