aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-29 19:55:15 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-29 19:55:15 +0000
commitebd486d5932c59266e685f2114d1e2ca781ed163 (patch)
tree6f6a2c554bf3ddf566aec3b949e3275979c37e04 /tcg
parente3926838a8c081a99eccc49c77eca5eb02bea950 (diff)
downloadqemu-ebd486d5932c59266e685f2114d1e2ca781ed163.zip
qemu-ebd486d5932c59266e685f2114d1e2ca781ed163.tar.gz
qemu-ebd486d5932c59266e685f2114d1e2ca781ed163.tar.bz2
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
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index ad631e9..78e7f93 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -621,8 +621,9 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags,
#endif
#ifdef TCG_TARGET_CALL_ALIGN_ARGS
/* some targets want aligned 64 bit args */
- if (i & 1) {
+ if (real_args & 1) {
*gen_opparam_ptr++ = TCG_CALL_DUMMY_ARG;
+ real_args++;
}
#endif
#ifdef TCG_TARGET_WORDS_BIGENDIAN