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