target/riscv: add "set round to odd" rounding mode helper function
commit75804f71319706308dd48441b408abc09481c5ae
authorFrank Chang <frank.chang@sifive.com>
Fri, 10 Dec 2021 07:56:49 +0000 (10 15:56 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 20 Dec 2021 04:53:31 +0000 (20 14:53 +1000)
treef0aed16dadb8f6d4aae8476da6cf8d97a91f82d5
parent3ce4c09df75529da0a5798279a01e24c02df15da
target/riscv: add "set round to odd" rounding mode helper function

helper_set_rounding_mode() is responsible for SIGILL, and "round to odd"
should be an interface private to translation, so add a new independent
helper_set_rod_rounding_mode().

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20211210075704.23951-64-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/fpu_helper.c
target/riscv/helper.h
target/riscv/internals.h
target/riscv/translate.c