aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-05-28 14:01:44 -0700
committerRichard Henderson <rth@twiddle.net>2014-06-04 13:58:39 -0700
commit0b919667302aa395bfde0328749dc21a0b123c44 (patch)
tree85b4fe5a2626cee917bd4c133de8805e950b4d05 /tcg
parente00fcfeab3d452cba3d0a08991a39ab15df66424 (diff)
downloadqemu-0b919667302aa395bfde0328749dc21a0b123c44.zip
qemu-0b919667302aa395bfde0328749dc21a0b123c44.tar.gz
qemu-0b919667302aa395bfde0328749dc21a0b123c44.tar.bz2
tcg-i386: Fix win64 qemu store
The first non-register argument isn't placed at offset 0. Cc: qemu-stable@nongnu.org Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/i386/tcg-target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index d910233..4133dcf 100644
--- a/tcg/i386/tcg-target.c
+++ b/tcg/i386/tcg-target.c
@@ -1407,7 +1407,8 @@ static void tcg_out_qemu_st_slow_path(TCGContext *s, TCGLabelQemuLdst *l)
} else {
retaddr = TCG_REG_RAX;
tcg_out_movi(s, TCG_TYPE_PTR, retaddr, (uintptr_t)l->raddr);
- tcg_out_st(s, TCG_TYPE_PTR, retaddr, TCG_REG_ESP, 0);
+ tcg_out_st(s, TCG_TYPE_PTR, retaddr, TCG_REG_ESP,
+ TCG_TARGET_CALL_STACK_OFFSET);
}
}