diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-01-15 06:06:56 -1000 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2023-01-20 10:14:14 +1000 |
| commit | 3ceeb19a53e51c0c6310d760d26dca08145797c5 (patch) | |
| tree | e847ad1a23b9a2af6155be8d65292cb7cf84dbab /linux-user/syscall.c | |
| parent | 9d9db41373a256c5ae011c1428d26d2597a77484 (diff) | |
| download | focaccia-qemu-3ceeb19a53e51c0c6310d760d26dca08145797c5.tar.gz focaccia-qemu-3ceeb19a53e51c0c6310d760d26dca08145797c5.zip | |
target/riscv: Introduce helper_set_rounding_mode_chkfrm
The new helper always validates the contents of FRM, even if the new rounding mode is not DYN. This is required by the vector unit. Track whether we've validated FRM separately from whether we've updated fp_status with a given rounding mode, so that we can elide calls correctly. This partially reverts d6c4d3f2a69 which attempted the to do the same thing, but with two calls to gen_set_rm(), which is both inefficient and tickles an assertion in decode_save_opc. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1441 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Acked-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20230115160657.3169274-2-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions