MIPS usermode TLS register

Implement cpu_set_tls for MIPS.

Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
Paul Brook 2009-07-09 15:07:57 +01:00
parent 18113962e4
commit ff867ddcbd
1 changed files with 5 additions and 0 deletions

View File

@ -597,4 +597,9 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc,
*flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK);
}
static inline void cpu_set_tls(CPUState *env, target_ulong newtls)
{
env->tls_value = newtls;
}
#endif /* !defined (__MIPS_CPU_H__) */