Commit ebd486d5932c59266e685f2114d1e2ca781ed163

Authored by malc
1 parent e3926838

Fix alignment of 64bit args

Unbreaks sparc and mips64el. (Reported by Thiemo Seufer)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5815 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
tcg/tcg.c
... ... @@ -621,8 +621,9 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags,
621 621 #endif
622 622 #ifdef TCG_TARGET_CALL_ALIGN_ARGS
623 623 /* some targets want aligned 64 bit args */
624   - if (i & 1) {
  624 + if (real_args & 1) {
625 625 *gen_opparam_ptr++ = TCG_CALL_DUMMY_ARG;
  626 + real_args++;
626 627 }
627 628 #endif
628 629 #ifdef TCG_TARGET_WORDS_BIGENDIAN
... ...