diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-08 13:33:08 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-18 10:57:36 +0100 |
commit | ad5439bb537a296814e40947dec51f1f96078bec (patch) | |
tree | 6845328869707616a611e486c02995883f0863b9 /include/exec | |
parent | 7a82413dbd8275303e4df9822c213bca15c34e86 (diff) |
cpu: remove unnecessary #ifdef CONFIG_TCG
"if (tcg_enabled())" allows elision of the code inside it; we only need
the prototype to exist, so that the code compile even for the --disable-tcg
case.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/cpu-all.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 3c8e24292b..bb37239efa 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -437,12 +437,10 @@ void dump_opcount_info(GString *buf); #endif /* !CONFIG_USER_ONLY */ -#ifdef CONFIG_TCG /* accel/tcg/cpu-exec.c */ int cpu_exec(CPUState *cpu); void tcg_exec_realizefn(CPUState *cpu, Error **errp); void tcg_exec_unrealizefn(CPUState *cpu); -#endif /* CONFIG_TCG */ /* Returns: 0 on success, -1 on error */ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr, |