sim-se: Correctly calculate next PC in clone

The clone syscall doesn't propagate all state in the PCState object
when calculating the return PC of a newly created process. Instead of
creating a new PCState object from the next PC address, copy the old
PC and advance it.

Change-Id: Ice53831920bcb5d198865169ed2cca8d06e37cfe
Signed-off-by: Andreas Sandberg <>
Cc: Giacomo Travaglini <>
Cc: Javier Setoain <>
Cc: Brandon Potter <>
Reviewed-by: Jason Lowe-Power <>
Maintainer: Brandon Potter <>
1 file changed