Revision ef96779b target-cris/cpu.h
b/target-cris/cpu.h | ||
---|---|---|
225 | 225 |
} |
226 | 226 |
#endif |
227 | 227 |
|
228 |
static inline void cpu_set_tls(CPUCRISState *env, target_ulong newtls) |
|
229 |
{ |
|
230 |
env->pregs[PR_PID] = (env->pregs[PR_PID] & 0xff) | newtls; |
|
231 |
} |
|
232 |
|
|
228 | 233 |
/* Support function regs. */ |
229 | 234 |
#define SFR_RW_GC_CFG 0][0 |
230 | 235 |
#define SFR_RW_MM_CFG env->pregs[PR_SRS]][0 |
Also available in: Unified diff