Commit 7d83131cc5ea95d7bb98658ac958a901ba4269de

Authored by bellard
1 parent 66e85a21

use inline function


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@263 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 11 additions and 1 deletions
translate-arm.c
... ... @@ -655,7 +655,7 @@ static void disas_arm_insn(DisasContext *s)
655 655 /* generate intermediate code in gen_opc_buf and gen_opparam_buf for
656 656 basic block 'tb'. If search_pc is TRUE, also generate PC
657 657 information for each intermediate instruction. */
658   -int gen_intermediate_code(TranslationBlock *tb, int search_pc)
  658 +static inline int gen_intermediate_code_internal(TranslationBlock *tb, int search_pc)
659 659 {
660 660 DisasContext dc1, *dc = &dc1;
661 661 uint16_t *gen_opc_end;
... ... @@ -717,6 +717,16 @@ int gen_intermediate_code(TranslationBlock *tb, int search_pc)
717 717 return 0;
718 718 }
719 719  
  720 +int gen_intermediate_code(TranslationBlock *tb)
  721 +{
  722 + return gen_intermediate_code_internal(tb, 0);
  723 +}
  724 +
  725 +int gen_intermediate_code_pc(TranslationBlock *tb)
  726 +{
  727 + return gen_intermediate_code_internal(tb, 1);
  728 +}
  729 +
720 730 CPUARMState *cpu_arm_init(void)
721 731 {
722 732 CPUARMState *env;
... ...