tcg/sparc: Fix temp_allocate_frame vs sparc stack bias
commit9defd1bdfb0f2ddb3ca9863e39577f3a9929d58c
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 18 Jun 2021 23:49:26 +0000 (18 16:49 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 18:09:10 +0000 (19 11:09 -0700)
tree1d59ca926984cb76a24ee79a3a0d37ff7ff81ec9
parent08dff435e27dc2bc3582e3f25e7cf01956dddafc
tcg/sparc: Fix temp_allocate_frame vs sparc stack bias

We should not be aligning the offset in temp_allocate_frame,
because the odd offset produces an aligned address in the end.
Instead, pass the logical offset into tcg_set_frame and add
the stack bias last.

Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/sparc/tcg-target.c.inc
tcg/tcg.c