Revision 3f90f252
b/tcg/tcg.c | ||
---|---|---|
596 | 596 |
real_args++; |
597 | 597 |
} |
598 | 598 |
#endif |
599 |
#ifdef TCG_TARGET_WORDS_BIGENDIAN |
|
599 |
/* If stack grows up, then we will be placing successive |
|
600 |
arguments at lower addresses, which means we need to |
|
601 |
reverse the order compared to how we would normally |
|
602 |
treat either big or little-endian. For those arguments |
|
603 |
that will wind up in registers, this still works for |
|
604 |
HPPA (the only current STACK_GROWSUP target) since the |
|
605 |
argument registers are *also* allocated in decreasing |
|
606 |
order. If another such target is added, this logic may |
|
607 |
have to get more complicated to differentiate between |
|
608 |
stack arguments and register arguments. */ |
|
609 |
#if defined(TCG_TARGET_WORDS_BIGENDIAN) != defined(TCG_TARGET_STACK_GROWSUP) |
|
600 | 610 |
*gen_opparam_ptr++ = args[i] + 1; |
601 | 611 |
*gen_opparam_ptr++ = args[i]; |
602 | 612 |
#else |
Also available in: Unified diff