mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-13 18:59:27 +00:00
tcg: Use fprintf_function (format checking)
fprintf_function uses format checking with GCC_FMT_ATTR. Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
f868445a50
commit
405cf9ff00
@ -2124,8 +2124,7 @@ int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, long offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PROFILER
|
#ifdef CONFIG_PROFILER
|
||||||
void tcg_dump_info(FILE *f,
|
void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf)
|
||||||
int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
|
|
||||||
{
|
{
|
||||||
TCGContext *s = &tcg_ctx;
|
TCGContext *s = &tcg_ctx;
|
||||||
int64_t tot;
|
int64_t tot;
|
||||||
@ -2169,8 +2168,7 @@ void tcg_dump_info(FILE *f,
|
|||||||
dump_op_count();
|
dump_op_count();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void tcg_dump_info(FILE *f,
|
void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf)
|
||||||
int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
|
|
||||||
{
|
{
|
||||||
cpu_fprintf(f, "[TCG profiler not compiled]\n");
|
cpu_fprintf(f, "[TCG profiler not compiled]\n");
|
||||||
}
|
}
|
||||||
|
@ -392,8 +392,7 @@ static inline TCGv_i64 tcg_temp_local_new_i64(void)
|
|||||||
void tcg_temp_free_i64(TCGv_i64 arg);
|
void tcg_temp_free_i64(TCGv_i64 arg);
|
||||||
char *tcg_get_arg_str_i64(TCGContext *s, char *buf, int buf_size, TCGv_i64 arg);
|
char *tcg_get_arg_str_i64(TCGContext *s, char *buf, int buf_size, TCGv_i64 arg);
|
||||||
|
|
||||||
void tcg_dump_info(FILE *f,
|
void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf);
|
||||||
int (*cpu_fprintf)(FILE *f, const char *fmt, ...));
|
|
||||||
|
|
||||||
#define TCG_CT_ALIAS 0x80
|
#define TCG_CT_ALIAS 0x80
|
||||||
#define TCG_CT_IALIAS 0x40
|
#define TCG_CT_IALIAS 0x40
|
||||||
|
Loading…
Reference in New Issue
Block a user