fpu_valid_opcode() did not correctly handle 16 bit fp instructions
authorjsg <jsg@openbsd.org>
Sun, 9 May 2021 23:22:25 +0000 (23:22 +0000)
committerjsg <jsg@openbsd.org>
Sun, 9 May 2021 23:22:25 +0000 (23:22 +0000)
commita3b8ef658ea40424e94905915b454b8102d7973a
tree3d934a49b0aa8c32468cdf348e273a46b2a32d00
parent1cb19090bf0e66960b2e1fc2e5f52f7be1ca5353
fpu_valid_opcode() did not correctly handle 16 bit fp instructions
such as an stval of 0xaa22.  The RISC-V Instruction Set Manual states
that setting stval to a non-zero value with the instruction on illegal
instruction exception is an optional feature so instead of changing
fpu_valid_opcode() remove it entirely.

ok deraadt@ kettenis@ drahn@
sys/arch/riscv64/include/cpu.h
sys/arch/riscv64/riscv64/fpu.c
sys/arch/riscv64/riscv64/trap.c