Commit f8ed7070ea2f314f63e54ddf73eb5e071cf00327
1 parent
6e68e076
Fix typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4624 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
9 changed files
with
9 additions
and
9 deletions
target-alpha/cpu.h
... | ... | @@ -314,7 +314,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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 | } | ... | ... |
target-arm/cpu.h
... | ... | @@ -411,7 +411,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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 | } | ... | ... |
target-cris/cpu.h
... | ... | @@ -221,7 +221,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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 | } | ... | ... |
target-i386/cpu.h
target-m68k/cpu.h
... | ... | @@ -229,7 +229,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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 | } | ... | ... |
target-mips/cpu.h
... | ... | @@ -503,7 +503,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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; | ... | ... |
target-ppc/cpu.h
... | ... | @@ -826,7 +826,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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; | ... | ... |
target-sh4/cpu.h
... | ... | @@ -146,7 +146,7 @@ static inline int cpu_mmu_index (CPUState *env) |
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 | } | ... | ... |
target-sparc/cpu.h
... | ... | @@ -406,7 +406,7 @@ static inline int cpu_fpu_enabled(CPUState *env1) |
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? */ | ... | ... |