Commit ff867ddcbd55af7becd2328a454e0158018fb50e
1 parent
18113962
MIPS usermode TLS register
Implement cpu_set_tls for MIPS. Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing
1 changed file
with
5 additions
and
0 deletions
target-mips/cpu.h
@@ -597,4 +597,9 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc, | @@ -597,4 +597,9 @@ static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc, | ||
597 | *flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK); | 597 | *flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK); |
598 | } | 598 | } |
599 | 599 | ||
600 | +static inline void cpu_set_tls(CPUState *env, target_ulong newtls) | ||
601 | +{ | ||
602 | + env->tls_value = newtls; | ||
603 | +} | ||
604 | + | ||
600 | #endif /* !defined (__MIPS_CPU_H__) */ | 605 | #endif /* !defined (__MIPS_CPU_H__) */ |