commit | 8f1534e7440382d118c3d655d3a6014128b2086d | [log] [tgz] |
---|---|---|
author | Jisheng Zhang <jszhang@kernel.org> | Sun Jul 21 01:06:59 2024 +0800 |
committer | Palmer Dabbelt <palmer@rivosinc.com> | Sun Sep 15 20:58:25 2024 -0700 |
tree | 125343c989be1ae407db466d0e9ca5edd5f4eff9 | |
parent | 7e340f4fad46b766705be96f5d1c764a397a7a36 [diff] |
riscv: avoid Imbalance in RAS Inspired by[1], modify the code to remove the code of modifying ra to avoid imbalance RAS (return address stack) which may lead to incorret predictions on return. Link: https://lore.kernel.org/linux-riscv/20240607061335.2197383-1-cyrilbur@tenstorrent.com/ [1] Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Reviewed-by: Cyril Bur <cyrilbur@tenstorrent.com> Link: https://lore.kernel.org/r/20240720170659.1522-1-jszhang@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>