Revision f8ed7070

b/target-alpha/cpu.h
314 314
#if defined(CONFIG_USER_ONLY)
315 315
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
316 316
{
317
    if (!newsp)
317
    if (newsp)
318 318
        env->ir[30] = newsp;
319 319
    /* FIXME: Zero syscall return value.  */
320 320
}
b/target-arm/cpu.h
411 411
#if defined(CONFIG_USER_ONLY)
412 412
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
413 413
{
414
    if (!newsp)
414
    if (newsp)
415 415
        env->regs[13] = newsp;
416 416
    env->regs[0] = 0;
417 417
}
b/target-cris/cpu.h
221 221
#if defined(CONFIG_USER_ONLY)
222 222
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
223 223
{
224
    if (!newsp)
224
    if (newsp)
225 225
        env->regs[14] = newsp;
226 226
    env->regs[10] = 0;
227 227
}
b/target-i386/cpu.h
737 737
#if defined(CONFIG_USER_ONLY)
738 738
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
739 739
{
740
    if (!newsp)
740
    if (newsp)
741 741
        env->regs[R_ESP] = newsp;
742 742
    env->regs[R_EAX] = 0;
743 743
}
b/target-m68k/cpu.h
229 229
#if defined(CONFIG_USER_ONLY)
230 230
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
231 231
{
232
    if (!newsp)
232
    if (newsp)
233 233
        env->aregs[7] = newsp;
234 234
    env->dregs[0] = 0;
235 235
}
b/target-mips/cpu.h
503 503
#if defined(CONFIG_USER_ONLY)
504 504
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
505 505
{
506
    if (!newsp)
506
    if (newsp)
507 507
        env->gpr[env->current_tc][29] = newsp;
508 508
    env->gpr[env->current_tc][7] = 0;
509 509
    env->gpr[env->current_tc][2] = 0;
b/target-ppc/cpu.h
826 826
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
827 827
{
828 828
    int i;
829
    if (!newsp)
829
    if (newsp)
830 830
        env->gpr[1] = newsp;
831 831
    for (i = 7; i < 32; i++)
832 832
        env->gpr[i] = 0;
b/target-sh4/cpu.h
146 146
#if defined(CONFIG_USER_ONLY)
147 147
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
148 148
{
149
    if (!newsp)
149
    if (newsp)
150 150
        env->gregs[15] = newsp;
151 151
    env->gregs[0] = 0;
152 152
}
b/target-sparc/cpu.h
406 406
#if defined(CONFIG_USER_ONLY)
407 407
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
408 408
{
409
    if (!newsp)
409
    if (newsp)
410 410
        env->regwptr[22] = newsp;
411 411
    env->regwptr[0] = 0;
412 412
    /* FIXME: Do we also need to clear CF?  */

Also available in: Unified diff