target/riscv: csr: Remove redundant check in fp csr read/write routines
commit232a2c8c85541e3b491f61b90f151f1edcdb3944
authorBin Meng <bmeng.cn@gmail.com>
Sun, 27 Jun 2021 12:06:04 +0000 (27 20:06 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 14 Jul 2021 22:56:00 +0000 (15 08:56 +1000)
tree62f8258188ae9904dac0769fe3ccee0353e523fa
parentb4cb178efbafaff22558c9cad7d2e1b8f351bdc3
target/riscv: csr: Remove redundant check in fp csr read/write routines

The following check:

    if (!env->debugger && !riscv_cpu_fp_enabled(env)) {
        return -RISCV_EXCP_ILLEGAL_INST;
    }

is redundant in fflags/frm/fcsr read/write routines, as the check was
already done in fs().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210627120604.11116-1-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/csr.c