diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2024-03-22 16:47:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-02 17:35:34 +0300 |
commit | bfd2fdbd1e6610a1ab39452b30217d4fb4de3529 (patch) | |
tree | df20aa1500d3c5e5ae61ad0150dbf7fbb1722e1a /scripts/get_feat.pl | |
parent | f50519b094ba3df44d8f00678ddde0cab8cde4a7 (diff) | |
download | linux-bfd2fdbd1e6610a1ab39452b30217d4fb4de3529.tar.xz |
RISC-V: selftests: cbo: Ensure asm operands match constraints, take 2
[ Upstream commit 49408400d683ae4f41e414dfcb615166cc93be5c ]
Commit 0de65288d75f ("RISC-V: selftests: cbo: Ensure asm operands
match constraints") attempted to ensure MK_CBO() would always
provide to a compile-time constant when given a constant, but
cpu_to_le32() isn't necessarily going to do that. Switch to manually
shifting the bytes, when needed, to finally get this right.
Reported-by: Woodrow Shen <woodrow.shen@sifive.com>
Closes: https://lore.kernel.org/all/CABquHATcBTUwfLpd9sPObBgNobqQKEAZ2yxk+TWSpyO5xvpXpg@mail.gmail.com/
Fixes: a29e2a48afe3 ("RISC-V: selftests: Add CBO tests")
Fixes: 0de65288d75f ("RISC-V: selftests: cbo: Ensure asm operands match constraints")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20240322134728.151255-2-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/get_feat.pl')
0 files changed, 0 insertions, 0 deletions