]> Git Repo - qemu.git/commitdiff
cpus.c: add additional error_report when !TARGET_SUPPORT_MTTCG
authorAlex Bennée <[email protected]>
Tue, 28 Feb 2017 14:40:17 +0000 (14:40 +0000)
committerAlex Bennée <[email protected]>
Thu, 9 Mar 2017 10:38:16 +0000 (10:38 +0000)
While we may fail the memory ordering check later that can be
confusing. So in cases where TARGET_SUPPORT_MTTCG has yet to be
defined we should say so specifically.

Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
cpus.c

diff --git a/cpus.c b/cpus.c
index 6a817fec13cf8e6a1a47f501dfaabf3d6e07e5b8..69e21858b8090bee35fa52ee4ea39efc20929816 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -202,6 +202,10 @@ void qemu_tcg_configure(QemuOpts *opts, Error **errp)
             } else if (use_icount) {
                 error_setg(errp, "No MTTCG when icount is enabled");
             } else {
+#ifndef TARGET_SUPPORT_MTTCG
+                error_report("Guest not yet converted to MTTCG - "
+                             "you may get unexpected results");
+#endif
                 if (!check_tcg_memory_orders_compatible()) {
                     error_report("Guest expects a stronger memory ordering "
                                  "than the host provides");
This page took 0.023288 seconds and 4 git commands to generate.