summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-08-19 10:07:58 +0200
committerLuca Barbieri <[email protected]>2010-08-19 10:08:57 +0200
commitc54dea66fd86f6000e334c703ea4890179c39c81 (patch)
tree478925774566552279bb24ce70719a42c062b268 /src/gallium/auxiliary/rtasm/rtasm_x86sse.c
parent18f207310b3c7dd7207d56e86a80b2e1d23c5364 (diff)
translate_sse: try to fix Win64
Not sure whether it works now (it is still disabled).
Diffstat (limited to 'src/gallium/auxiliary/rtasm/rtasm_x86sse.c')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_x86sse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index 0fe6ebfcb45..75b0f6a68ea 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -2105,8 +2105,9 @@ struct x86_reg x86_fn_arg( struct x86_function *p,
case 4:
return x86_make_reg(file_REG32, reg_R9);
default:
+ /* Win64 allocates stack slots as if it pushed the first 4 arguments too */
return x86_make_disp(x86_make_reg(file_REG32, reg_SP),
- p->stack_offset + (arg - 4) * 8); /* ??? */
+ p->stack_offset + arg * 8);
}
case X86_64_STD_ABI:
switch(arg)