Skip to content

Commit

Permalink
Pseudo instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 14, 2024
1 parent a105e43 commit 804ce19
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 deletions.
29 changes: 0 additions & 29 deletions ceno_rt/.cargo/config.toml

This file was deleted.

4 changes: 2 additions & 2 deletions ceno_rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ _start:
// If we return from main, we halt with success:
// Set the ecall code HALT.
addi t0, x0, 0
li t0, 0
// Set successful exit code, ie 0:
addi a0, x0, 0
li a0, 0
ecall
",
);
Expand Down
1 change: 0 additions & 1 deletion examples/.cargo/config.toml

This file was deleted.

29 changes: 29 additions & 0 deletions examples/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[unstable]
build-std = [
"alloc",
"core",
"compiler_builtins",
"std",
"panic_abort",
"proc_macro",
]
build-std-features = [
"compiler-builtins-mem",
"panic_immediate_abort",
"default",
]

[profile.dev]
panic = "abort"

[build]
rustflags = [
"-C",
"link-arg=-Tmemory.x",
"-C",
"link-arg=-Tceno_link.x",
"-Zlocation-detail=none",
"-C",
"passes=lower-atomic",
]
target = ".cargo/riscv32im-ceno-zkvm-elf.json"

0 comments on commit 804ce19

Please sign in to comment.