1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * LoongArch specific CPU ABI and functions for linux-user
5 * Copyright (c) 2021 Loongson Technology Corporation Limited
8 #ifndef LOONGARCH_TARGET_CPU_H
9 #define LOONGARCH_TARGET_CPU_H
11 static inline void cpu_clone_regs_child(CPULoongArchState *env,
12 target_ulong newsp, unsigned flags)
20 static inline void cpu_clone_regs_parent(CPULoongArchState *env,
25 static inline void cpu_set_tls(CPULoongArchState *env, target_ulong newtls)
30 static inline abi_ulong get_sp_from_cpustate(CPULoongArchState *state)