aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-07-09 15:07:57 +0100
committerPaul Brook <paul@codesourcery.com>2009-07-09 15:07:57 +0100
commitff867ddcbd55af7becd2328a454e0158018fb50e (patch)
tree95241b4911801c25c8ef00e5c2460b8dcc44f990 /target-mips
parentFix MIPS sys_clone (diff)
downloadqemu-kvm-ff867ddcbd55af7becd2328a454e0158018fb50e.tar.gz
qemu-kvm-ff867ddcbd55af7becd2328a454e0158018fb50e.tar.bz2
qemu-kvm-ff867ddcbd55af7becd2328a454e0158018fb50e.zip
MIPS usermode TLS register
Implement cpu_set_tls for MIPS. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index b415dc43b..6ebb82bcc 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -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__) */