]> Git Repo - qemu.git/blame - linux-user/xtensa/target_cpu.h
iothread: fix crash with invalid properties
[qemu.git] / linux-user / xtensa / target_cpu.h
CommitLineData
ba7651fb
MF
1/*
2 * Xtensa-specific CPU ABI and functions for linux-user
3 */
4#ifndef XTENSA_TARGET_CPU_H
5#define XTENSA_TARGET_CPU_H
6
7static inline void cpu_clone_regs(CPUXtensaState *env, target_ulong newsp)
8{
9 if (newsp) {
10 env->regs[1] = newsp;
11 env->sregs[WINDOW_BASE] = 0;
12 env->sregs[WINDOW_START] = 0x1;
13 }
14 env->regs[2] = 0;
15}
16
17static inline void cpu_set_tls(CPUXtensaState *env, target_ulong newtls)
18{
19 env->uregs[THREADPTR] = newtls;
20}
21
9850f9f6
LV
22static inline abi_ulong get_sp_from_cpustate(CPUXtensaState *state)
23{
24 return state->regs[1];
25}
ba7651fb 26#endif
This page took 0.04228 seconds and 4 git commands to generate.