stats: Move QMP commands from monitor/ to stats/
[qemu/armbru.git] / linux-user / xtensa / target_cpu.h
blob0c77bafd66f7696d51f96478d21ea438a7590008
1 /*
2 * Xtensa-specific CPU ABI and functions for linux-user
3 */
4 #ifndef XTENSA_TARGET_CPU_H
5 #define XTENSA_TARGET_CPU_H
7 static inline void cpu_clone_regs_child(CPUXtensaState *env,
8 target_ulong newsp,
9 unsigned flags)
11 if (newsp) {
12 env->regs[1] = newsp;
13 env->sregs[WINDOW_BASE] = 0;
14 env->sregs[WINDOW_START] = 0x1;
16 env->regs[2] = 0;
19 static inline void cpu_clone_regs_parent(CPUXtensaState *env, unsigned flags)
23 static inline void cpu_set_tls(CPUXtensaState *env, target_ulong newtls)
25 env->uregs[THREADPTR] = newtls;
28 static inline abi_ulong get_sp_from_cpustate(CPUXtensaState *state)
30 return state->regs[1];
32 #endif