aboutsummaryrefslogtreecommitdiff
path: root/linux-user/s390x
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-11-06 12:33:15 +0100
committerLaurent Vivier <laurent@vivier.eu>2019-11-06 13:42:34 +0100
commit608999d17c8726eb4cfa967e95f06cf026a4dde2 (patch)
tree70c528ae7048dcb413d36593f2c288a111b00300 /linux-user/s390x
parentb220cbcf25d2a78f645ee105ad07558de699c4fa (diff)
downloadqemu-608999d17c8726eb4cfa967e95f06cf026a4dde2.zip
qemu-608999d17c8726eb4cfa967e95f06cf026a4dde2.tar.gz
qemu-608999d17c8726eb4cfa967e95f06cf026a4dde2.tar.bz2
linux-user: Rename cpu_clone_regs to cpu_clone_regs_child
We will need a target-specific hook for adjusting registers in the parent during clone. To avoid confusion, rename the one we have to make it clear it affects the child. At the same time, pass in the flags from the clone syscall. We will need them for correct behaviour for Sparc. Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191106113318.10226-10-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/s390x')
-rw-r--r--linux-user/s390x/target_cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/s390x/target_cpu.h b/linux-user/s390x/target_cpu.h
index aa181ce..0b19e42 100644
--- a/linux-user/s390x/target_cpu.h
+++ b/linux-user/s390x/target_cpu.h
@@ -19,7 +19,8 @@
#ifndef S390X_TARGET_CPU_H
#define S390X_TARGET_CPU_H
-static inline void cpu_clone_regs(CPUS390XState *env, target_ulong newsp)
+static inline void cpu_clone_regs_child(CPUS390XState *env, target_ulong newsp,
+ unsigned flags)
{
if (newsp) {
env->regs[15] = newsp;