|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH] tcg: Include "qemu/timer.h" for profile_getclock |
| Date: | Thu, 2 Mar 2023 22:56:47 +0100 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
On 2/3/23 17:29, 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());
| ^~~~~~~~~~~~~~~~
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
tcg/tcg.c | 1 +
1 file changed, 1 insertion(+)
These files have the same issue: - softmmu/runstate.c - accel/tcg/translate-all.c - accel/tcg/tcg-accel-ops.c
| [Prev in Thread] | Current Thread | [Next in Thread] |