configure: add CONFIG_TCG=1 to config-host.mak

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure: emit summary at the very end

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl: implement tcg_enabled() and tcg_available() as for other accelerators

This way, tcg_enabled() can be used to stub out entire sections of code
that are not used on TCG.  This will limit the use of #ifdef and improves
code checking from the compiler.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure: add --disable-tcg configure option

This lets you build without TCG (KVM/Xen/qtest only).  When this flag
is passed to configure, it will automatically filter out the target list
to only those that support KVM or Xen.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vapic: use tcg_enabled

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
monitor: disable info jit if !TCG

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec: move qemu_cpu_has_work out of cpu-exec.c

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec: move functions from exec-all.h to private headers

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec: small adjustments for TCG separation

Add stubs for cpu_restore_state and tlb_fill, which should respectively
have no effect and never be used outside TCG mode.

Add assertions that TCG is enabled around code that calls to TCG from
exec.c, so that the compiler can remove the entire functions as dead
(the proper way to do this should be to move them to cpu-exec.c
instead).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
i386: make cpu_get_fp80/cpu_set_fp80 static

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
i386: move TCG code out of helper.o

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
build: compile out tcg if --disable-tcg

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec: conditionally compile out tb_invalidate_phys_page_fast

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>