From ef96779bc3df7f4fe228fb9a5c7ecb81a04b2644 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Wed, 7 Jan 2009 14:19:38 +0000 Subject: CRIS: Implement set_thread_area for CRIS. Signed-off-by: Edgar E. Iglesias git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6210 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-cris/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target-cris') diff --git a/target-cris/cpu.h b/target-cris/cpu.h index 9e4faff300..dea4cc46c1 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -225,6 +225,11 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) } #endif +static inline void cpu_set_tls(CPUCRISState *env, target_ulong newtls) +{ + env->pregs[PR_PID] = (env->pregs[PR_PID] & 0xff) | newtls; +} + /* Support function regs. */ #define SFR_RW_GC_CFG 0][0 #define SFR_RW_MM_CFG env->pregs[PR_SRS]][0 -- cgit v1.2.1