linux-stable/tools
Andrew Jones bfd2fdbd1e RISC-V: selftests: cbo: Ensure asm operands match constraints, take 2
[ Upstream commit 49408400d6 ]

Commit 0de65288d7 ("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: a29e2a48af ("RISC-V: selftests: Add CBO tests")
Fixes: 0de65288d7 ("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>
2024-05-02 16:35:34 +02:00
..
accounting
arch work around gcc bugs with 'asm goto' with outputs 2024-02-09 15:57:48 -08:00
bootconfig
bpf tools/resolve_btfids: Fix cross-compilation to non-host endianness 2024-03-26 18:16:40 -04:00
build
certs
cgroup
counter
crypto
debugging
edid
firewire
firmware
gpio
hv
iio tools: iio: replace seekdir() in iio_generic_buffer 2024-04-13 13:10:08 +02:00
include tools/resolve_btfids: fix build with musl libc 2024-04-03 15:32:51 +02:00
kvm/kvm_stat
laptop
leds
lib libperf evlist: Avoid out-of-bounds access 2024-04-13 13:10:07 +02:00
memory-model
mm
net/ynl tools: ynl: don't ignore errors in NLMSG_DONE messages 2024-05-02 16:35:17 +02:00
objtool objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks 2024-03-26 18:16:51 -04:00
pci
pcmcia
perf perf lock contention: Add a missing NULL check 2024-04-27 17:12:54 +02:00
power tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:10:00 +02:00
rcu
scripts
spi
testing RISC-V: selftests: cbo: Ensure asm operands match constraints, take 2 2024-05-02 16:35:34 +02:00
thermal
time
tracing tools/rtla: Exit with EXIT_SUCCESS when help is invoked 2024-02-12 10:59:09 +01:00
usb
verification tools/rv: Fix curr_reactor uninitialized variable 2024-02-12 09:58:36 +01:00
virtio
wmi
workqueue
Makefile