linux-user/riscv: Adjust vdso signal frame cfa offsets
commit1b21fe27e75a59bfe2513f5abcc6a18cfc35cfc8
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Jan 2024 22:02:38 +0000 (13 09:02 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jan 2024 03:22:46 +0000 (23 13:22 +1000)
treee4342d33e612adf1fad58911dfc0669c8fa0c356
parentc1ddc18f37108498f45d57afd6bf33a23b703648
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>
linux-user/riscv/vdso-32.so
linux-user/riscv/vdso-64.so
linux-user/riscv/vdso.S