]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/sparc: Fix temp_allocate_frame vs sparc stack bias
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 18 Jun 2021 23:49:26 +0000 (16:49 -0700)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 21:14:43 +0000 (16:14 -0500)
commit1a0a1c49649f7e7b2116daa127337a003bb0dcfb
tree38b370f3c24c5dd1a702d0d1206e5529ea48ac58
parentcdb8a71e2e4bcef3a7815d6a3d02bb8da2a1001d
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>
(cherry picked from commit 9defd1bdfb0f2ddb3ca9863e39577f3a9929d58c)
Signed-off-by: Michael Roth <michael.roth@amd.com>
tcg/sparc/tcg-target.c.inc
tcg/tcg.c