Browse Source

Fix riscv64 for no-std (#8770)

pch/bump_wasm_tools_210
Theo Paris 5 months ago
committed by GitHub
parent
commit
b7aacfc872
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      crates/wasmtime/src/runtime/vm/arch/riscv64.rs

2
crates/wasmtime/src/runtime/vm/arch/riscv64.rs

@ -12,7 +12,7 @@ pub type V128Abi = u128;
pub fn get_stack_pointer() -> usize {
let stack_pointer: usize;
unsafe {
std::arch::asm!(
core::arch::asm!(
"mv {}, sp",
out(reg) stack_pointer,
options(nostack,nomem),

Loading…
Cancel
Save