On 3/3/23 00:49, Richard W.M. Jones wrote:
When CONFIG_PROFILER is set there are various undefined references to
profile_getclock.  Include the header which defines this function.

For example:

../tcg/tcg.c: In function ‘tcg_gen_code’:
../tcg/tcg.c:4905:51: warning: implicit declaration of function 
‘profile_getclock’ [-Wimplicit-function-declaration]
  4905 |     qatomic_set(&prof->opt_time, prof->opt_time - profile_getclock());
       |                                                   ^~~~~~~~~~~~~~~~

Thanks: Philippe Mathieu-Daudé
Signed-off-by: Richard W.M. Jones<rjo...@redhat.com>
---
  accel/tcg/tcg-accel-ops.c | 1 +
  accel/tcg/translate-all.c | 1 +
  softmmu/runstate.c        | 1 +
  tcg/tcg.c                 | 1 +
  4 files changed, 4 insertions(+)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

And queued to tcg-next.


r~

Reply via email to