aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-30 17:54:15 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-30 17:54:15 +0000
commitf8ed7070ea2f314f63e54ddf73eb5e071cf00327 (patch)
treed04c1ddc0c772f548d6e495d813c2b2380886307
parent6e68e076e72f42d43cc3b5435751d796c2410a3f (diff)
downloadqemu-f8ed7070ea2f314f63e54ddf73eb5e071cf00327.zip
qemu-f8ed7070ea2f314f63e54ddf73eb5e071cf00327.tar.gz
qemu-f8ed7070ea2f314f63e54ddf73eb5e071cf00327.tar.bz2
Fix typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4624 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-alpha/cpu.h2
-rw-r--r--target-arm/cpu.h2
-rw-r--r--target-cris/cpu.h2
-rw-r--r--target-i386/cpu.h2
-rw-r--r--target-m68k/cpu.h2
-rw-r--r--target-mips/cpu.h2
-rw-r--r--target-ppc/cpu.h2
-rw-r--r--target-sh4/cpu.h2
-rw-r--r--target-sparc/cpu.h2
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? */