linux-user/host/riscv: Improve host_signal_write
commit4f3bbd9cfb49ac8287afd32b3916edc50e8e1850
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Sep 2021 18:24:14 +0000 (17 11:24 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (2 07:00 -0400)
tree51d6aa7f9298d52126e42f66f1c6f9c95e97cc34
parent7ce8e389efc5011742194fd46847fce3be4b3124
linux-user/host/riscv: Improve host_signal_write

Do not read 4 bytes before we determine the size of the insn.
Simplify triple switches in favor of checking major opcodes.
Include the missing cases of compact fsd and fsdsp.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/host/riscv/host-signal.h