linux-kernelorg-stable/tools
Andy Chiu 5c93c4c72f
selftests: Test RISC-V Vector's first-use handler
This add a test to check if the kernel zero-initializes all V registers
after the first-use trap handler returns.

If V registers are not zero-initialized, then the test should fail one
out of several runs:

```
 root@sifive-fpga:~# ./v_initval_nolibc
 # vl = 256
 not ok 1 detect stale values on v-regesters
 0 0 0 0 0 0 0 0   0 0 0 0 0 0 0 0
 0 4c 41 4e 47 3d 43 0   50 41 54 48 3d 2f 75 73
 72 2f 6c 6f 63 61 6c 2f   73 62 69 6e 3a 2f 75 73
 72 2f 6c 6f 63 61 6c 2f   62 69 6e 3a 2f 75 73 72
 ff ff 81 0 0 0 0 0   0 0 0 0 0 0 0 0
```

Otherwise, the test passes without errors each run.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20230627015556.12329-3-andy.chiu@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-07-01 07:38:22 -07:00
..
accounting
arch - Remove the local symbols prefix of the get/put_user() exception 2023-06-27 12:25:42 -07:00
bootconfig
bpf
build
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
io_uring
kvm/kvm_stat
laptop
leds
lib Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
memory-model
mm
net/ynl
objtool objtool: Remove btrfs_assertfail() from the noreturn exceptions list 2023-06-29 17:27:47 -07:00
pci
pcmcia
perf Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
power
rcu
scripts
spi
testing selftests: Test RISC-V Vector's first-use handler 2023-07-01 07:38:22 -07:00
thermal
time
tracing
usb
verification
virtio
wmi
workqueue
Makefile