diff options
author | Richard Henderson <rth@twiddle.net> | 2012-09-12 16:52:31 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-01-05 12:18:45 -0800 |
commit | 90b4f8ad7226960d3a21bd8fca894ce1e6b5e4cf (patch) | |
tree | 1c566626172804e38088a07472ff1bbd0ab8cae9 /target-s390x/cpu.h | |
parent | 411edc22cbab9a44f6d6c6cdef8637ba1f313e37 (diff) | |
download | qemu-90b4f8ad7226960d3a21bd8fca894ce1e6b5e4cf.tar.gz qemu-90b4f8ad7226960d3a21bd8fca894ce1e6b5e4cf.tar.bz2 qemu-90b4f8ad7226960d3a21bd8fca894ce1e6b5e4cf.zip |
target-s390: Fix cpu_clone_regs
R2 is the syscall return register, not R0.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x/cpu.h')
-rw-r--r-- | target-s390x/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index dc7bbc67f6..bc3fab226b 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -116,7 +116,7 @@ static inline void cpu_clone_regs(CPUS390XState *env, target_ulong newsp) if (newsp) { env->regs[15] = newsp; } - env->regs[0] = 0; + env->regs[2] = 0; } #endif |