Skip to content

Commit

Permalink
ppcInstructionMatcher: Reference PPCSyscall Haddocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Jul 22, 2024
1 parent 70a92e0 commit ad31314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macaw-ppc/src/Data/Macaw/PPC/Arch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ ppcInstructionMatcher (D.Instruction opc operands) =
resVal <- G.addExpr (G.AppExpr (MC.TupleField knownRepr res PL.index0))
errorCondVal <- G.addExpr (G.AppExpr (MC.TupleField knownRepr res PL.index1))

-- See the documentation on 'PPCSyscall' for a description of the
-- registers used to return values from syscalls.
G.setRegVal (PPC_GP (D.GPR 3)) resVal
-- We need to use an explicit type signature here to prevent GHC's type
-- inference from becoming confused by the GADT pattern match on
Expand Down

0 comments on commit ad31314

Please sign in to comment.