ppc: Initialize the stack pointer in the abstract state

PPC uses r1 for the stack pointer
This commit is contained in:
Tristan Ravitch 2018-03-27 18:12:39 -07:00
parent d885de3a72
commit fdb00dec14

View File

@ -88,6 +88,7 @@ mkInitialAbsState _ tocMap _mem startAddr =
where
s0 = MA.top & MA.setAbsIP startAddr
& MA.absRegState . boundValue PPC_LNK .~ MA.ReturnAddr
& MA.absRegState . boundValue (PPC_GP (D.GPR 1)) .~ MA.concreteStackOffset (relativeSegmentAddr startAddr) 0
absEvalArchFn :: (PPCArchConstraints ppc)
=> proxy ppc