mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-29 11:02:13 +03:00
98290062a7
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. |
||
---|---|---|
.. | ||
src/Data/Macaw/PPC | ||
tests | ||
ChangeLog.md | ||
LICENSE | ||
macaw-ppc-symbolic.cabal | ||
Setup.hs |