qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/5] vl: don't expose TCG as a supported accelerator


From: Anthony Liguori
Subject: [Qemu-devel] [PATCH 2/5] vl: don't expose TCG as a supported accelerator if TCG is disabled
Date: Fri, 2 Sep 2011 16:48:00 -0500

Signed-off-by: Anthony Liguori <address@hidden>
---
 arch_init.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch_init.c b/arch_init.c
index 567ab32..5b37f8d 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -711,7 +711,11 @@ int audio_available(void)
 
 int tcg_available(void)
 {
+#if defined(CONFIG_TCG)
     return 1;
+#else
+    return 0;
+#endif
 }
 
 int kvm_available(void)
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]