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
,
14 static inline void cpu_clone_regs_parent(CPURISCVState
*env
, unsigned flags
)
18 static inline void cpu_set_tls(CPURISCVState
*env
, target_ulong newtls
)
20 env
->gpr
[xTP
] = newtls
;
23 static inline abi_ulong
get_sp_from_cpustate(CPURISCVState
*state
)
25 return state
->gpr
[xSP
];