summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/perf
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2023-11-03 12:02:23 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-12-06 17:18:02 +0300
commit22e0eb04837a63af111fae35a92f7577676b9bc8 (patch)
tree5f9bf05760a48e4135432a30896861a2347c7fd2 /Documentation/devicetree/bindings/perf
parent777c0d761be7d981a2ae5494dfbc636311908dfb (diff)
downloadlinux-22e0eb04837a63af111fae35a92f7577676b9bc8.tar.xz
riscv: fix misaligned access handling of C.SWSP and C.SDSP
This is a backport of a fix that was done in OpenSBI: ec0559eb315b ("lib: sbi_misaligned_ldst: Fix handling of C.SWSP and C.SDSP"). Unlike C.LWSP/C.LDSP, these encodings can be used with the zero register, so checking that the rs2 field is non-zero is unnecessary. Additionally, the previous check was incorrect since it was checking the immediate field of the instruction instead of the rs2 field. Fixes: 956d705dd279 ("riscv: Unaligned load/store handling for M_MODE") Signed-off-by: Clément Léger <cleger@rivosinc.com> Link: https://lore.kernel.org/r/20231103090223.702340-1-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'Documentation/devicetree/bindings/perf')
0 files changed, 0 insertions, 0 deletions