-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Connect CPU to ECALL tables #364
Merged
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
e929119
interactionkind alu => coprocessor
hidenori-shinohara a64cf4e
add blake3 test
hidenori-shinohara d5b0bf2
alu => coprocessor
hidenori-shinohara 216f1ce
mimincing is-alu, adding is_precompile
hidenori-shinohara e3087fc
elf test sh
hidenori-shinohara 26bc1c0
todo
hidenori-shinohara 7aaa831
breaking tests, but i don't think there's otherw ays
hidenori-shinohara e176a16
oh wow the test passes..?
hidenori-shinohara 3582d30
io_test.sh
hidenori-shinohara 39499f1
this breaks some tests like IO but i'm trying to make it work only with
hidenori-shinohara 87686b7
small progress
hidenori-shinohara a7e6d9f
is_bale3_compress
hidenori-shinohara 3789d31
i think i finally figured out where to set is-balke3
hidenori-shinohara 0d7cc97
finally setting is_blake_3 to 1, causing an interaciton error
hidenori-shinohara 377fe4b
confirms that it's sending one too many times!
hidenori-shinohara 9c43c1f
okay blake3 interaction is workign!
hidenori-shinohara 5900756
add more stuff
hidenori-shinohara 97e4953
make progress
hidenori-shinohara 16c8e4f
clena up
hidenori-shinohara 1ffa74c
ec_add_test, failing :(
hidenori-shinohara 904cc5b
fix an interaction bug by ec_add,b but there's still more issues.
hidenori-shinohara 752bf81
sha compress test
hidenori-shinohara 5c88aa1
use an argumetn in sha compress
hidenori-shinohara f40ce44
sha compress test working
hidenori-shinohara 10e01e6
a better way to send interactions
hidenori-shinohara 3c7b0b4
compiles, simplified
puma314 bc82307
added syscall cycle encodinG
puma314 f674627
added ed_add
puma314 737c960
rename back
puma314 6409f13
asdf
puma314 12583aa
small refactor, at least it now executes
puma314 17052a0
Merge branch 'main' into hide/alu-comprocessor
puma314 3b724f2
compiles after merge
puma314 bf75747
CPU fails
puma314 4511b79
Cleanup
puma314 bb7c153
More cleanup
puma314 371b33b
Update precompiles to make sure 2nd arg if unused is 0
puma314 0825fb0
Cleanup files that shouldn't diff
puma314 51cc8d4
Progress on cleaning up ecall
puma314 0ed80b6
asdf
puma314 7c12748
more commit
puma314 5456e44
more fixes
puma314 2825244
ed decompress passees
puma314 4a039b4
fixed most single-row precompiles except k256 decompress
puma314 a94b2ae
Fixed lwa ecall test
puma314 a9f82a8
fixed sha256 extend
puma314 beaf0d8
keccak now works
puma314 4839a76
Compress now works
puma314 c1ffc11
fixed blake
puma314 e4a756d
ALL TESTS PASS PRAISE
puma314 fd15251
cleanup
puma314 09fb744
cleanup
puma314 e41b6ad
read bits from register instead of memory
ctian1 5f22560
update syscall
ctian1 ff188cd
fix
ctian1 3c14634
changes
puma314 b95a2c9
exaples
puma314 51bb9a1
updates
puma314 34f90de
Merge branch 'main' into hide/alu-comprocessor
puma314 f29d6f6
cleanup
puma314 dc9a01d
more cleanup
puma314 cd75655
tests pass leggo
puma314 38ec42c
Final cleanup
puma314 83f4105
make derive easier
puma314 1a1c865
clippy
puma314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Development Guide | ||
|
||
This is a guide with helpful information for developers who want to contribute to the SP1 project. | ||
|
||
## Getting started | ||
|
||
You can run the test suite in SP1 core by running the following command: | ||
|
||
```bash | ||
cd core | ||
cargo test | ||
``` | ||
|
||
|
||
|
||
**Debug Constraint Failure** | ||
|
||
To debug constraint failures, you can use the `--features debug` feature alongside `--no-default-features` to eliminate the "perf" feature. For example: | ||
|
||
``` | ||
RUST_LOG=info RUST_BACKTRACE=1 cargo test syscall::precompiles::edwards::ed_add::tests::test_ed_add_simple --release --features debug --no-default-features -- --nocapture | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might need to check that send_to_table and is_halt are bool