Commit 820e00f252239465e1df507b6fabcffd6b7b6983

Authored by ths
1 parent faab7592

Define gen_intermediate_code_internal as "static inline".


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2512 c046a42c-6fe2-441c-8c8c-71466251a162
target-m68k/translate.c
... ... @@ -2551,8 +2551,9 @@ optimize_flags(void)
2551 2551 #endif
2552 2552  
2553 2553 /* generate intermediate code for basic block 'tb'. */
2554   -int gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
2555   - int search_pc)
  2554 +static inline int
  2555 +gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
  2556 + int search_pc)
2556 2557 {
2557 2558 DisasContext dc1, *dc = &dc1;
2558 2559 uint16_t *gen_opc_end;
... ...
target-mips/translate.c
... ... @@ -4999,8 +4999,9 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
4999 4999 }
5000 5000 }
5001 5001  
5002   -int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
5003   - int search_pc)
  5002 +static inline int
  5003 +gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
  5004 + int search_pc)
5004 5005 {
5005 5006 DisasContext ctx, *ctxp = &ctx;
5006 5007 target_ulong pc_start;
... ...
target-ppc/translate.c
... ... @@ -4604,8 +4604,9 @@ void cpu_dump_statistics (CPUState *env, FILE*f,
4604 4604 }
4605 4605  
4606 4606 /*****************************************************************************/
4607   -int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
4608   - int search_pc)
  4607 +static inline int
  4608 +gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
  4609 + int search_pc)
4609 4610 {
4610 4611 DisasContext ctx, *ctxp = &ctx;
4611 4612 opc_handler_t **table, *handler;
... ...
target-sh4/translate.c
... ... @@ -1087,8 +1087,9 @@ void decode_opc(DisasContext * ctx)
1087 1087 ctx->flags |= BRANCH_EXCEPTION;
1088 1088 }
1089 1089  
1090   -int gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb,
1091   - int search_pc)
  1090 +static inline int
  1091 +gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb,
  1092 + int search_pc)
1092 1093 {
1093 1094 DisasContext ctx;
1094 1095 target_ulong pc_start;
... ...