aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-05-28 14:01:44 -0700
committerPeter Maydell <peter.maydell@linaro.org>2014-06-20 12:30:26 +0100
commit1861e65b8d4370ef52552de95e96998be57c7d1f (patch)
tree204bccc8475eef18aac0c14f47cbdb3920f68776
parentb2facf3eee5091ed5d21563dcd2cd0e95a5032ac (diff)
downloadqemu-arm-1861e65b8d4370ef52552de95e96998be57c7d1f.tar.gz
tcg-i386: Fix win64 qemu store
[Cherry pick of master commit 0b919667302aa.] 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>
-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 a373073ff8..01009c761a 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);
}
}