aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-09-27 12:51:05 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-09-27 12:51:05 -0700
commit491e6d76fbf966811e0386d6d52622dfaae396c2 (patch)
treed3de39363b2f9dc33025904efdd45e579c90548f
parentc3b969ab0c049efd7a699fe4dacc659b7ceb30bb (diff)
downloadexternal_qemu-491e6d76fbf966811e0386d6d52622dfaae396c2.zip
external_qemu-491e6d76fbf966811e0386d6d52622dfaae396c2.tar.gz
external_qemu-491e6d76fbf966811e0386d6d52622dfaae396c2.tar.bz2
Use different macro for KVM
Change-Id: I62a2d54562ac043a5513585a2e86aa01038fdc29
-rw-r--r--hw/goldfish_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/goldfish_pipe.c b/hw/goldfish_pipe.c
index 5a00247..b3c6975 100644
--- a/hw/goldfish_pipe.c
+++ b/hw/goldfish_pipe.c
@@ -14,7 +14,7 @@
#include "hw/goldfish_pipe.h"
#include "hw/goldfish_device.h"
#include "qemu-timer.h"
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
#include "kvm.h"
#endif
@@ -879,7 +879,7 @@ pipeDevice_doCommand( PipeDevice* dev, uint32_t command )
uint32_t address = dev->address;
uint32_t page = address & TARGET_PAGE_MASK;
target_phys_addr_t phys;
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
if(kvm_enabled()) {
cpu_synchronize_state(env, 0);
}
@@ -899,7 +899,7 @@ pipeDevice_doCommand( PipeDevice* dev, uint32_t command )
uint32_t address = dev->address;
uint32_t page = address & TARGET_PAGE_MASK;
target_phys_addr_t phys;
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
if(kvm_enabled()) {
cpu_synchronize_state(env, 0);
}