summaryrefslogtreecommitdiffstats
path: root/linux-user/openrisc
diff options
context:
space:
mode:
authorRichard Henderson2019-11-06 12:33:16 +0100
committerLaurent Vivier2019-11-06 13:43:25 +0100
commit07a6ecf48feaddb4914ca8ec9603021f992ec3b9 (patch)
tree7f71c74f407533d7418e5e2f773246824a130d26 /linux-user/openrisc
parentlinux-user: Rename cpu_clone_regs to cpu_clone_regs_child (diff)
downloadqemu-07a6ecf48feaddb4914ca8ec9603021f992ec3b9.tar.gz
qemu-07a6ecf48feaddb4914ca8ec9603021f992ec3b9.tar.xz
qemu-07a6ecf48feaddb4914ca8ec9603021f992ec3b9.zip
linux-user: Introduce cpu_clone_regs_parent
We will need a target-specific hook for adjusting registers in the parent during clone. Add an empty inline function for each target, and invoke it from the proper places. 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-11-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/openrisc')
-rw-r--r--linux-user/openrisc/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/openrisc/target_cpu.h b/linux-user/openrisc/target_cpu.h
index 309cf3eeb7..74370d67c4 100644
--- a/linux-user/openrisc/target_cpu.h
+++ b/linux-user/openrisc/target_cpu.h
@@ -30,6 +30,10 @@ static inline void cpu_clone_regs_child(CPUOpenRISCState *env,
cpu_set_gpr(env, 11, 0);
}
+static inline void cpu_clone_regs_parent(CPUOpenRISCState *env, unsigned flags)
+{
+}
+
static inline void cpu_set_tls(CPUOpenRISCState *env, target_ulong newtls)
{
cpu_set_gpr(env, 10, newtls);