mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
Fix typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4624 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6e68e076e7
commit
f8ed7070ea
@ -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. */
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user