-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ecall support for read-only file operations (#325)
* Fix ecall support for read-only file operations * Fix RISC-V file syscalls to check flags properly * Add RISC-V ecall test for file operations Updated `postToGUIThread()` to only run the passed function if the Qt app is initialized. This was causing problems when using ecall for file operations in `tst_riscv.cpp` becuse it would try to use the uninitialized Qt app (a null pointer) to access the GUI thread during syscall execution. Added syscall execution to `tst_riscv.cpp`. * Fix ecall test filename to be relative (fixes problems on Windows)
- Loading branch information
Showing
7 changed files
with
222 additions
and
52 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
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 @@ | ||
../riscv-tests/ecall_file.s |
Oops, something went wrong.