Patchwork [for-1.6,1/5] target-ppc: Suppress TCG instruction emulation warnings for qtest

login
register
mail settings
Submitter Andreas Färber
Date July 29, 2013, 2:05 p.m.
Message ID <1375106733-832-2-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/262779/
State New
Headers show

Comments

Andreas Färber - July 29, 2013, 2:05 p.m.
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-ppc/translate_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 8215946..4fc022d 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7825,7 +7825,7 @@  static void ppc_cpu_realizefn(DeviceState *dev, Error **errp)
             error_setg(errp, "Unable to virtualize selected CPU with KVM");
             return;
         }
-    } else {
+    } else if (tcg_enabled()) {
         if (ppc_fixup_cpu(cpu) != 0) {
             error_setg(errp, "Unable to emulate selected CPU with TCG");
             return;