util/hbitmap: update orig_size on truncate
[qemu/ar7.git] / linux-user / riscv / target_cpu.h
blob90f9a4171ee755ae59db64154ebab36d718594e1
1 #ifndef RISCV_TARGET_CPU_H
2 #define RISCV_TARGET_CPU_H
4 static inline void cpu_clone_regs(CPURISCVState *env, target_ulong newsp)
6 if (newsp) {
7 env->gpr[xSP] = newsp;
10 env->gpr[xA0] = 0;
13 static inline void cpu_set_tls(CPURISCVState *env, target_ulong newtls)
15 env->gpr[xTP] = newtls;
18 static inline abi_ulong get_sp_from_cpustate(CPURISCVState *state)
20 return state->gpr[xSP];
22 #endif