arch-arm, sim-se: Fix incorrect SP handling in clone

The clone syscall is currently broken on aarch64 since the aarch64
code uses an incorrect SP register. Fix this by storing the new stack
pointer in SP_EL0 instead of R13.

Change-Id: Ie17990b4f359608e3b53e5bf625eca53769a6653
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