From: Philippe Mathieu-Daudé <>

Some new users get confused with 'TCG' and 'TCI', and enable TCI
support expecting to enable TCG.

Emit a warning when native TCG backend is available on the
host architecture, mentioning this is a suboptimal configuration.

Reviewed-by: Thomas Huth <>
Suggested-by: Daniel Berrangé <>
Signed-off-by: Philippe Mathieu-Daudé <>
Reviewed-by: Daniel P. Berrangé <>
Message-Id: <>
Signed-off-by: Paolo Bonzini <>
--- | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ b/
index 21bc9f1b2c..b6c9db613b 100644
--- a/
+++ b/
@@ -231,6 +231,13 @@ if not get_option('tcg').disabled()
       error('Unsupported CPU @0@, try --enable-tcg-interpreter'.format(cpu))
+  elif get_option('tcg_interpreter')
+    warning('Use of the TCG interpretor is not recommended on this host')
+    warning('architecture. There is a native TCG execution backend available')
+    warning('which provides substantially better performance and reliability.')
+    warning('It is strongly recommended to remove the 
+    warning('configuration option on this architecture to use the native')
+    warning('backend.')
   if get_option('tcg_interpreter')
     tcg_arch = 'tci'

Reply via email to