projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71cb4e
)
MIPS usermode TLS register
author
Paul Brook
<paul@codesourcery.com>
Thu, 9 Jul 2009 14:07:57 +0000
(15:07 +0100)
committer
Paul Brook
<paul@codesourcery.com>
Thu, 9 Jul 2009 14:07:57 +0000
(15:07 +0100)
Implement cpu_set_tls for MIPS.
Signed-off-by: Paul Brook <paul@codesourcery.com>
target-mips/cpu.h
patch
|
blob
|
history
diff --git
a/target-mips/cpu.h
b/target-mips/cpu.h
index
b415dc4
..
6ebb82b
100644
(file)
--- 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__) */