Commit 871e6c3507b34c584739cadde13885e11db0b3ce
1 parent
04843626
Fix CONFIG_PROFILER
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing
1 changed file
with
3 additions
and
5 deletions
tcg/tcg.c
| ... | ... | @@ -1866,7 +1866,7 @@ static int tcg_reg_alloc_call(TCGContext *s, const TCGOpDef *def, |
| 1866 | 1866 | |
| 1867 | 1867 | static int64_t tcg_table_op_count[NB_OPS]; |
| 1868 | 1868 | |
| 1869 | -void dump_op_count(void) | |
| 1869 | +static void dump_op_count(void) | |
| 1870 | 1870 | { |
| 1871 | 1871 | int i; |
| 1872 | 1872 | FILE *f; |
| ... | ... | @@ -2074,10 +2074,8 @@ void tcg_dump_info(FILE *f, |
| 2074 | 2074 | s->restore_count); |
| 2075 | 2075 | cpu_fprintf(f, " avg cycles %0.1f\n", |
| 2076 | 2076 | s->restore_count ? (double)s->restore_time / s->restore_count : 0); |
| 2077 | - { | |
| 2078 | - extern void dump_op_count(void); | |
| 2079 | - dump_op_count(); | |
| 2080 | - } | |
| 2077 | + | |
| 2078 | + dump_op_count(); | |
| 2081 | 2079 | } |
| 2082 | 2080 | #else |
| 2083 | 2081 | void tcg_dump_info(FILE *f, | ... | ... |