diff options
| -rw-r--r-- | library/core/src/hint.rs | 5 | ||||
| m--------- | library/stdarch | 0 |
2 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs index 95798879155..f49aefea81b 100644 --- a/library/core/src/hint.rs +++ b/library/core/src/hint.rs @@ -137,6 +137,11 @@ pub fn spin_loop() { unsafe { crate::arch::arm::__yield() }; } } + + #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] + { + crate::arch::riscv::pause(); + } } /// An identity function that *__hints__* to the compiler to be maximally pessimistic about what diff --git a/library/stdarch b/library/stdarch -Subproject cfba59fccd90b3b52a614120834320f764ab08d +Subproject 43b4556c44197af4ef82e42a12dfc513a1397f8 |
