diff options
-rw-r--r-- | target-alpha/cpu.h | 2 | ||||
-rw-r--r-- | target-arm/cpu.h | 2 | ||||
-rw-r--r-- | target-cris/cpu.h | 2 | ||||
-rw-r--r-- | target-i386/cpu.h | 2 | ||||
-rw-r--r-- | target-m68k/cpu.h | 2 | ||||
-rw-r--r-- | target-mips/cpu.h | 2 | ||||
-rw-r--r-- | target-ppc/cpu.h | 2 | ||||
-rw-r--r-- | target-sh4/cpu.h | 2 | ||||
-rw-r--r-- | target-sparc/cpu.h | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 0c1b580..e9b2b07 100644 --- a/target-alpha/cpu.h +++ b/target-alpha/cpu.h @@ -314,7 +314,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->ir[30] = newsp; /* FIXME: Zero syscall return value. */ } diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 1c51d2d..5005bf6 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -411,7 +411,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->regs[13] = newsp; env->regs[0] = 0; } diff --git a/target-cris/cpu.h b/target-cris/cpu.h index ea86bf9..a4f016f 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -221,7 +221,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->regs[14] = newsp; env->regs[10] = 0; } diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 7d4551e..56cdd97 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -737,7 +737,7 @@ extern CCTable cc_table[]; #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->regs[R_ESP] = newsp; env->regs[R_EAX] = 0; } diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h index 7691452..cfeafc0 100644 --- a/target-m68k/cpu.h +++ b/target-m68k/cpu.h @@ -229,7 +229,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->aregs[7] = newsp; env->dregs[0] = 0; } diff --git a/target-mips/cpu.h b/target-mips/cpu.h index f9fcafb..964a560 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -503,7 +503,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->gpr[env->current_tc][29] = newsp; env->gpr[env->current_tc][7] = 0; env->gpr[env->current_tc][2] = 0; diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 06dc083..d08bbba 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -826,7 +826,7 @@ static inline int cpu_mmu_index (CPUState *env) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { int i; - if (!newsp) + if (newsp) env->gpr[1] = newsp; for (i = 7; i < 32; i++) env->gpr[i] = 0; diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 9294b94..c349bc8 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -146,7 +146,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->gregs[15] = newsp; env->gregs[0] = 0; } diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 54807fb..ad9aeb8 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -406,7 +406,7 @@ static inline int cpu_fpu_enabled(CPUState *env1) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->regwptr[22] = newsp; env->regwptr[0] = 0; /* FIXME: Do we also need to clear CF? */ |