-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macaw-ppc-symbolic: Add support for simulating syscalls
This adds the necessary changes to `macaw-ppc-symbolic` and `macaw-ppc` in order to simulate system calls, similarly to how it is done when simulating x86-64 and AArch32 code: * In `macaw-ppc`, remove `PPCSyscall` from `TermStmt` and instead make it a constructor for `PPCPrimFn`. (Note that there are some minor discrepancies between which registers are used in PPC32 versus PPC64, which we explain in the Haddocks for the new `PPCSyscall` constructor.) * Update `macaw-ppc`'s `ppcInstructionMatcher` function so that calls to the `sc` (system call) instruction make use of `PPCSyscall`. * Update `macaw-ppc-symbolic`'s `ppcGenFn` function to make it possible to hook into PPC system calls using `MacawLookupSyscallHandle`. Fixes #387.
- Loading branch information
1 parent
8f81e0f
commit 2c60f97
Showing
5 changed files
with
167 additions
and
32 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