]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/riscv: Adjust vdso signal frame cfa offsets
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Jan 2024 22:02:38 +0000 (09:02 +1100)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 25 Jan 2024 16:13:41 +0000 (19:13 +0300)
commit1e0f028de71dc6aea7103b40281d32f4f0ebbbb9
tree0f84a7bef5e05781c596967c8f83cd15b4093ed8
parent8bdd3abcf1c989ebe4428190e5789dfbbdf6c6ca
linux-user/riscv: Adjust vdso signal frame cfa offsets

A typo in sizeof_reg put the registers at the wrong offset.

Simplify the expressions to use positive addresses from the
start of uc_mcontext instead of negative addresses from the
end of uc_mcontext.

Reported-by: Vineet Gupta <vineetg@rivosinc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 1b21fe27e75a59bfe2513f5abcc6a18cfc35cfc8)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/riscv/vdso-32.so
linux-user/riscv/vdso-64.so
linux-user/riscv/vdso.S