Commit Graph

14 Commits

Author SHA1 Message Date
Leo Alt
88206d3ca3 new data input 2023-12-04 13:35:23 +01:00
Lucas Clemente Vella
27a2b006cd Providing alloc_zeroed instead of using default implementation.
This may save some cycles of zeroing already zeroed memory.
2023-11-21 11:00:51 +00:00
Guillaume Ballet
1b29f6f76c poseidon gl rust 2023-10-17 18:56:08 +02:00
Lucas Clemente Vella
37c3a616e5 Using the atomic variant of RISC-V. (#546) 2023-08-31 13:02:01 +02:00
Thibaut Schaeffer
b80686a880 VM to VM calls (#392)
* implement call from vm to vm

* address review

* reduce diff in pilgen

* address review

* address more comments

* clean up readme, fix tests

* keep only one machine type for the block enforcer readme
2023-08-21 16:23:25 +02:00
Guillaume Ballet
18fa7bd69d Add the capability of replacing rust functions with coprocessor lookups (#398)
* Replace calls to the poseidon_hash function with a coprocessor lookup

* update the poseidon hash dummy for tests to pass

Co-authored-by: Leo <me@leoa.lt>

* make the substituted coprocessor function FFI

* cargo fmt

* make coprocessor substitutions more generic

* remove the coprocessor stub body in powdr asm output

* remove leftover comment

* fix unnecessary nested loop in coprocessor collection

* use uglier, stable approach to `if let` guard

* fix clippy warnings

---------

Co-authored-by: Leo <me@leoa.lt>
2023-07-24 20:45:10 +02:00
chriseth
ed79e49540 Move single large object to the end. 2023-06-15 14:26:34 +01:00
chriseth
54cb1a58fd Fix memory access. 2023-06-15 14:26:23 +01:00
Lucas Clemente Vella
1ce602d4af Print macro and panic handler safety. 2023-05-19 17:36:11 +01:00
Lucas Clemente Vella
00c749b296 Using compiler_builtin functions instead of our own.
Also supporting multiple .set directive indirections.
2023-05-17 17:11:27 +01:00
Lucas Clemente Vella
18c3a1c6e6 Implemented allocator and a test to use it.
A couple of missing instructions were added to as needed.
2023-05-16 16:15:39 +02:00
chriseth
2702c67d09 Debug out with MaybeUninit. 2023-05-16 15:05:03 +02:00
chriseth
d97f1f83b5 Debug print. 2023-05-09 19:55:09 +02:00
Guillaume Ballet
5d5ab18d7b add a runtime crate
Update riscv/runtime/src/lib.rs

Co-authored-by: chriseth <chris@ethereum.org>

package runtime lib to compile single files

Remove need for loop{} in main

Remove 'extern "C"' from main declaration

implement mem* funcs in the runtime

Co-Authored-by: chriseth <chris@ethereum.org>

fix a couple endianness and alignment issues

remove unused build entry in compiler/Cargo.toml

more review feedback

fix clippy linter error

update README

Remove all #[no_main]

Add test runner for memfuncs.
2023-05-08 22:42:54 +02:00