2019-08-31 09:00:46 -05:00
|
|
|
From 50ce3e454d5721cb534a9e9bb73c82246b930bab Mon Sep 17 00:00:00 2001
|
|
|
|
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
|
|
Date: Sat, 19 Jan 2019 11:46:43 +0100
|
|
|
|
Subject: [PATCH] Disable inline assembly in libcore
|
|
|
|
|
|
|
|
---
|
|
|
|
src/libcore/hint.rs | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs
|
|
|
|
index ad5a207..04712b8 100644
|
|
|
|
--- a/src/libcore/hint.rs
|
|
|
|
+++ b/src/libcore/hint.rs
|
|
|
|
@@ -62,6 +62,7 @@ pub unsafe fn unreachable_unchecked() -> ! {
|
|
|
|
#[inline]
|
|
|
|
#[unstable(feature = "renamed_spin_loop", issue = "55002")]
|
|
|
|
pub fn spin_loop() {
|
|
|
|
+ /*
|
2019-12-16 04:33:57 -06:00
|
|
|
#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "sse2"))]
|
|
|
|
{
|
|
|
|
#[cfg(target_arch = "x86")]
|
2019-08-31 09:00:46 -05:00
|
|
|
@@ -71,4 +72,5 @@ pub fn spin_loop() {
|
|
|
|
unsafe { crate::arch::arm::__yield() };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.17.2 (Apple Git-113)
|