]> Git Repo - qemu.git/blame - linux-user/riscv/target_cpu.h
linux-user: fix comment s/atomic_write/atomic_set/
[qemu.git] / linux-user / riscv / target_cpu.h
CommitLineData
47ae93cd
MC
1#ifndef TARGET_CPU_H
2#define TARGET_CPU_H
3
4static inline void cpu_clone_regs(CPURISCVState *env, target_ulong newsp)
5{
6 if (newsp) {
7 env->gpr[xSP] = newsp;
8 }
9
10 env->gpr[xA0] = 0;
11}
12
13static inline void cpu_set_tls(CPURISCVState *env, target_ulong newtls)
14{
15 env->gpr[xTP] = newtls;
16}
17
9850f9f6
LV
18static inline abi_ulong get_sp_from_cpustate(CPURISCVState *state)
19{
20 return state->gpr[xSP];
21}
47ae93cd 22#endif
This page took 0.061313 seconds and 4 git commands to generate.