projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9abf3f
)
target-ppc: fix cpu_clone_regs
author
Nathan Froyd
<froydnj@codesourcery.com>
Mon, 3 Aug 2009 15:43:23 +0000
(08:43 -0700)
committer
malc
<av1474@comtv.ru>
Mon, 3 Aug 2009 16:33:40 +0000
(20:33 +0400)
We only need to make sure that the clone syscall looks like it
succeeded, not clobber 60% of the register set.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
target-ppc/cpu.h
patch
|
blob
|
history
diff --git
a/target-ppc/cpu.h
b/target-ppc/cpu.h
index
69c1d58
..
148e8c3
100644
(file)
--- a/
target-ppc/cpu.h
+++ b/
target-ppc/cpu.h
@@
-817,11
+817,9
@@
static inline int cpu_mmu_index (CPUState *env)
#if defined(CONFIG_USER_ONLY)
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
{
- int i;
if (newsp)
env->gpr[1] = newsp;
- for (i = 7; i < 32; i++)
- env->gpr[i] = 0;
+ env->gpr[3] = 0;
}
#endif