Skip to content

Commit

Permalink
Remove riscv dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 14, 2024
1 parent cb8543d commit 5591e56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 97 deletions.
86 changes: 0 additions & 86 deletions guest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions guest/ceno_rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ name = "ceno_rt"
readme = "README.md"
repository.workspace = true
version.workspace = true

[dependencies]
riscv = "0.12"
12 changes: 4 additions & 8 deletions guest/ceno_rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ mod panic_handler {
pub fn halt(exit_code: u32) -> ! {
unsafe {
asm!(
// Set the first argument.
"mv a0, {}",
// Set the ecall code HALT.
"li t0, 0x0",
in(reg) exit_code,
"ecall",
in ("a0") exit_code,
in ("t0") 0,
);
riscv::asm::ecall();
}
#[allow(clippy::empty_loop)]
loop {}
unreachable!();
}

global_asm!(
Expand Down

0 comments on commit 5591e56

Please sign in to comment.