linux-user: Rename cpu_clone_regs to cpu_clone_regs_child
[qemu/kevin.git] / linux-user / riscv / target_cpu.h
blob26dcafab1c774af6b7145aec81abbbaaa8a19501
1 #ifndef RISCV_TARGET_CPU_H
2 #define RISCV_TARGET_CPU_H
4 static inline void cpu_clone_regs_child(CPURISCVState *env, target_ulong newsp,
5 unsigned flags)
7 if (newsp) {
8 env->gpr[xSP] = newsp;
11 env->gpr[xA0] = 0;
14 static inline void cpu_set_tls(CPURISCVState *env, target_ulong newtls)
16 env->gpr[xTP] = newtls;
19 static inline abi_ulong get_sp_from_cpustate(CPURISCVState *state)
21 return state->gpr[xSP];
23 #endif