aboutsummaryrefslogtreecommitdiff
path: root/accel/tcg/tcg-accel-ops.c
diff options
context:
space:
mode:
authorFei Wu <fei2.wu@intel.com>2023-06-07 20:24:02 +0800
committerRichard Henderson <richard.henderson@linaro.org>2023-06-26 17:33:00 +0200
commit1b65b4f54c7f7d07b5d35fac5f7de3e75f5f21a0 (patch)
treeccb5b69feba927a332292d7f708e2868c51933a7 /accel/tcg/tcg-accel-ops.c
parentea185a557bc97868f3729060ea1cd003dbd971d1 (diff)
downloadqemu-1b65b4f54c7f7d07b5d35fac5f7de3e75f5f21a0.zip
qemu-1b65b4f54c7f7d07b5d35fac5f7de3e75f5f21a0.tar.gz
qemu-1b65b4f54c7f7d07b5d35fac5f7de3e75f5f21a0.tar.bz2
accel/tcg: remove CONFIG_PROFILER
TBStats will be introduced to replace CONFIG_PROFILER totally, here remove all CONFIG_PROFILER related stuffs first. Signed-off-by: Vanderson M. do Rosario <vandersonmr2@gmail.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Fei Wu <fei2.wu@intel.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230607122411.3394702-2-fei2.wu@intel.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/tcg-accel-ops.c')
-rw-r--r--accel/tcg/tcg-accel-ops.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c
index 58c8e64..3973591 100644
--- a/accel/tcg/tcg-accel-ops.c
+++ b/accel/tcg/tcg-accel-ops.c
@@ -70,20 +70,10 @@ void tcg_cpus_destroy(CPUState *cpu)
int tcg_cpus_exec(CPUState *cpu)
{
int ret;
-#ifdef CONFIG_PROFILER
- int64_t ti;
-#endif
assert(tcg_enabled());
-#ifdef CONFIG_PROFILER
- ti = profile_getclock();
-#endif
cpu_exec_start(cpu);
ret = cpu_exec(cpu);
cpu_exec_end(cpu);
-#ifdef CONFIG_PROFILER
- qatomic_set(&tcg_ctx->prof.cpu_exec_time,
- tcg_ctx->prof.cpu_exec_time + profile_getclock() - ti);
-#endif
return ret;
}