diff mbox series

[v1,3/3] cpus.c: add additional error_report when !TARGET_SUPPORT_MTTCG

Message ID 20170228150709.27453-4-alex.bennee@linaro.org
State Superseded
Headers show
Series MTTCG start-up tweaks | expand

Commit Message

Alex Bennée Feb. 28, 2017, 3:07 p.m. UTC
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 <alex.bennee@linaro.org>

---
 cpus.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.11.0
diff mbox series

Patch

diff --git a/cpus.c b/cpus.c
index e9aab9f70f..2459f564ea 100644
--- a/cpus.c
+++ b/cpus.c
@@ -206,6 +206,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");