]> git.proxmox.com Git - qemu.git/commitdiff
Fix typo.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 30 May 2008 17:54:15 +0000 (17:54 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 30 May 2008 17:54:15 +0000 (17:54 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4624 c046a42c-6fe2-441c-8c8c-71466251a162

target-alpha/cpu.h
target-arm/cpu.h
target-cris/cpu.h
target-i386/cpu.h
target-m68k/cpu.h
target-mips/cpu.h
target-ppc/cpu.h
target-sh4/cpu.h
target-sparc/cpu.h

index 0c1b580f97b81c4d037861e88d234253d4bee841..e9b2b07571a790864edccdf721d955228f45ad1e 100644 (file)
@@ -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.  */
 }
index 1c51d2df400b0ab3d029ddd36ffc06c8dfad0dda..5005bf6dd30be1f6e45cea8c4f1ec01b980df041 100644 (file)
@@ -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;
 }
index ea86bf902426934d707c93cb0ff37b8fe01defd0..a4f016f12535355d16235ea1a9baef3e386d1d71 100644 (file)
@@ -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;
 }
index 7d4551e76550f372d5153fbcdc2821b5d57855ec..56cdd97506b9a90168d67518aae29c93650d7078 100644 (file)
@@ -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;
 }
index 76914525f6e52863a9e5a20dd5536435e9263531..cfeafc003edcb4af43b3adb5d2cd395532c3d982 100644 (file)
@@ -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;
 }
index f9fcafbb1f9948bc017a7ed939ef2ed2f12bb5fd..964a560fa377bc9d55827c4746a291f193e74e68 100644 (file)
@@ -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;
index 06dc083909a822eefad66d2ca91956316c790ad6..d08bbba99597b89929c4d4b206295e0406a536e9 100644 (file)
@@ -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;
index 9294b94e3f5738e867a9a911b64978e89ca975ae..c349bc886267c0744abfe7c4137767910dce6de9 100644 (file)
@@ -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;
 }
index 54807fb02152309fd6a83b25ee74d30b527cff18..ad9aeb86713b545a1656aecddfa7050d3aa35f87 100644 (file)
@@ -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?  */