mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-29 17:17:05 +03:00
ppc: Initialize the stack pointer in the abstract state
PPC uses r1 for the stack pointer
This commit is contained in:
parent
d885de3a72
commit
fdb00dec14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user