mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
3ce4c09df7
commit
75804f7131
4 changed files with 14 additions and 0 deletions
|
@ -43,6 +43,7 @@ enum {
|
|||
RISCV_FRM_RUP = 3, /* Round Up */
|
||||
RISCV_FRM_RMM = 4, /* Round to Nearest, ties to Max Magnitude */
|
||||
RISCV_FRM_DYN = 7, /* Dynamic rounding mode */
|
||||
RISCV_FRM_ROD = 8, /* Round to Odd */
|
||||
};
|
||||
|
||||
static inline uint64_t nanbox_s(float32 f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue