Skip to content

Commit

Permalink
Workaround for LLVM compiler bug for rv32im (risc0#2129)
Browse files Browse the repository at this point in the history
See: rust-lang/rust#128212

---------

Co-authored-by: Erik Kaneda <[email protected]>
  • Loading branch information
flaub and SchmErik authored Jul 26, 2024
1 parent 715fa67 commit 6209beb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion risc0/build/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ mod test {
build("../../risc0/zkvm/methods/guest/Cargo.toml");
compare_image_id(
"risc0_zkvm_methods_guest/multi_test",
"42db28b642c1a8fa50bea888dc1c37178754b641408585d859eb9f6cb95a6633",
"1ade8788486544500d1221b64cac462c84ba9344cd875c3c8e84ca12d1bf7d5d",
);
}
}
6 changes: 3 additions & 3 deletions risc0/zkvm/platform/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ macro_rules! impl_syscall {
::core::arch::asm!(
"ecall",
in("t0") $crate::syscall::ecall::SOFTWARE,
inout("a0") from_host => a0,
inout("a1") from_host_words => a1,
inlateout("a0") from_host => a0,
inlateout("a1") from_host_words => a1,
in("a2") syscall.as_ptr()
$(,in("a3") $a0
$(,in("a4") $a1
Expand Down Expand Up @@ -328,7 +328,7 @@ pub extern "C" fn sys_input(index: u32) -> u32 {
asm!(
"ecall",
in("t0") t0,
inout("a0") index => a0,
inlateout("a0") index => a0,
);
a0
}
Expand Down

0 comments on commit 6209beb

Please sign in to comment.