-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature-m-instruction-set
- Loading branch information
Showing
12 changed files
with
424 additions
and
145 deletions.
There are no files selected for viewing
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,23 @@ | ||
Thank you for opening a PR to riscemu, your contribution is highly appreciated! | ||
|
||
We've put together two checklists below to make sure the review and merge process goes as smoothly as possible. Please make sure that you complete the writing checklist before opening the PR. Please feel free to delete it once you completed it. | ||
|
||
The pre-merge checklist is here so that you can see roughly what is expected of a PR to be merged. Not every step is always required, but checking all the boxes makes it almost certain that your PR will be merged swiftly. Feel free to leave it in the PR text, or delete it, it's up to you! | ||
|
||
Good luck with the PR! | ||
|
||
|
||
**PR Writing Checklist:** | ||
|
||
- [ ] If I'm referencing an Issue, I put the issue number in the PR name | ||
- [ ] I wrote a paragraph explaining my changes and the motivation | ||
- [ ] If this PR is not ready yet for review, I mark it as draft | ||
- [ ] Delete this checklist before opening the PR | ||
|
||
|
||
**Pre-Merge Checklist:** | ||
|
||
- [ ] I added an entry to the `CHANGELOG.md` | ||
- [ ] I added a test that covers my change | ||
- [ ] I ran the pre-commit formatting hooks | ||
- [ ] CI Passes |
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
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// RUN: python3 -m riscemu -v %s | filecheck %s | ||
.data | ||
msg: .ascii "Hello world\n" | ||
.text | ||
addi x10, x0, 1 ; print to stdout | ||
addi x11, x0, msg ; load msg address | ||
addi x12, x0, 12 ; write 12 bytes | ||
addi x17, x0, SCALL_WRITE ; write syscall code | ||
scall | ||
addi x10, x0, 0 ; set exit code to 0 | ||
addi x17, x0, SCALL_EXIT ; exit syscall code | ||
scall | ||
|
||
// CHECK: Hello world | ||
// CHECK: [CPU] Program exited with code 0 |
Oops, something went wrong.