Revision f5147c93
b/configure | ||
---|---|---|
4262 | 4262 |
bflt="yes" |
4263 | 4263 |
;; |
4264 | 4264 |
sparc) |
4265 |
target_nptl="no" |
|
4266 | 4265 |
;; |
4267 | 4266 |
sparc64) |
4268 | 4267 |
TARGET_BASE_ARCH=sparc |
4269 |
target_nptl="no" |
|
4270 | 4268 |
;; |
4271 | 4269 |
sparc32plus) |
4272 | 4270 |
TARGET_ARCH=sparc64 |
4273 | 4271 |
TARGET_BASE_ARCH=sparc |
4274 | 4272 |
TARGET_ABI_DIR=sparc |
4275 | 4273 |
echo "TARGET_ABI32=y" >> $config_target_mak |
4276 |
target_nptl="no" |
|
4277 | 4274 |
;; |
4278 | 4275 |
s390x) |
4279 | 4276 |
;; |
b/linux-user/sparc/target_cpu.h | ||
---|---|---|
25 | 25 |
if (newsp) { |
26 | 26 |
env->regwptr[22] = newsp; |
27 | 27 |
} |
28 |
/* syscall return for clone child: 0, and clear CF since |
|
29 |
* this counts as a success return value. |
|
30 |
*/ |
|
28 | 31 |
env->regwptr[0] = 0; |
29 |
/* FIXME: Do we also need to clear CF? */ |
|
30 |
/* XXXXX */ |
|
31 |
printf("HELPME: %s:%d\n", __FILE__, __LINE__); |
|
32 |
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32) |
|
33 |
env->xcc &= ~PSR_CARRY; |
|
34 |
#else |
|
35 |
env->psr &= ~PSR_CARRY; |
|
36 |
#endif |
|
32 | 37 |
} |
33 | 38 |
|
34 |
/* TODO: need to implement cpu_set_tls() */ |
|
39 |
static inline void cpu_set_tls(CPUSPARCState *env, target_ulong newtls) |
|
40 |
{ |
|
41 |
env->gregs[7] = newtls; |
|
42 |
} |
|
35 | 43 |
|
36 | 44 |
#endif |
Also available in: Unified diff