Commit fc37dcfe authored by Richard Henderson's avatar Richard Henderson Committed by Riku Voipio
Browse files

linux-user/hppa: Fix cpu_clone_regs



By failing to return from the syscall in the child, the child
issues another clone syscall and hilarity ensues.

Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
parent 2da6e76c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -24,7 +24,11 @@ static inline void cpu_clone_regs(CPUHPPAState *env, target_ulong newsp)
    if (newsp) {
        env->gr[30] = newsp;
    }
    /* Indicate child in return value.  */
    env->gr[28] = 0;
    /* Return from the syscall.  */
    env->iaoq_f = env->gr[31];
    env->iaoq_b = env->gr[31] + 4;
}

static inline void cpu_set_tls(CPUHPPAState *env, target_ulong newtls)