Add spin_loop hint for RISC-V architecture
This commit also updates `stdarch` git submodule.
This commit is contained in:
parent
bdaa901049
commit
70855b24b8
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit cfba59fccd90b3b52a614120834320f764ab08d1
|
||||
Subproject commit 43b4556c44197af4ef82e42a12dfc513a1397f87
|
||||
Loading…
Add table
Add a link
Reference in a new issue