OSDN Git Service

cpu: remove unnecessary #ifdef CONFIG_TCG
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Oct 2021 11:33:08 +0000 (13:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 18 Dec 2021 09:57:36 +0000 (10:57 +0100)
commitad5439bb537a296814e40947dec51f1f96078bec
tree6845328869707616a611e486c02995883f0863b9
parent7a82413dbd8275303e4df9822c213bca15c34e86
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>
cpu.c
include/exec/cpu-all.h