Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 85c5292cae93dc9f78106cb8943f4d4fbf8a5a46..ff1ecb13ce8c55e32f28fceca6a510022456a417 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -177,7 +177,7 @@ LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) = |
#endif |
void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
-#ifdef V8_TARGET_ARCH_ARM |
+#if defined(V8_TARGET_ARCH_ARM) && defined(__arm__) // don't use on a simulator |
Søren Thygesen Gjesse
2010/05/25 06:36:13
Uppercase D, end comment with period.
|
pLinuxKernelMemoryBarrier(); |
#else |
__asm__ __volatile__("" : : : "memory"); |