Revision 174c80d5 target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
1589 | 1589 |
*flags = env->hflags; |
1590 | 1590 |
} |
1591 | 1591 |
|
1592 |
static inline void cpu_set_tls(CPUState *env, target_ulong newtls) |
|
1593 |
{ |
|
1594 |
#if defined(TARGET_PPC64) |
|
1595 |
/* The kernel checks TIF_32BIT here; we don't support loading 32-bit |
|
1596 |
binaries on PPC64 yet. */ |
|
1597 |
env->gpr[13] = newtls; |
|
1598 |
#else |
|
1599 |
env->gpr[2] = newtls; |
|
1600 |
#endif |
|
1601 |
} |
|
1602 |
|
|
1592 | 1603 |
#endif /* !defined (__CPU_PPC_H__) */ |
Also available in: Unified diff