Revision 27908725
b/linux-user/main.c | ||
---|---|---|
559 | 559 |
env->regwptr[2], env->regwptr[3], |
560 | 560 |
env->regwptr[4], env->regwptr[5]); |
561 | 561 |
if ((unsigned int)ret >= (unsigned int)(-515)) { |
562 |
#ifdef TARGET_SPARC64 |
|
563 |
env->xcc |= PSR_CARRY; |
|
564 |
#else |
|
562 | 565 |
env->psr |= PSR_CARRY; |
566 |
#endif |
|
563 | 567 |
ret = -ret; |
564 | 568 |
} else { |
569 |
#ifdef TARGET_SPARC64 |
|
570 |
env->xcc &= ~PSR_CARRY; |
|
571 |
#else |
|
565 | 572 |
env->psr &= ~PSR_CARRY; |
573 |
#endif |
|
566 | 574 |
} |
567 | 575 |
env->regwptr[0] = ret; |
568 | 576 |
/* next instruction */ |
Also available in: Unified diff