OSDN Git Service

target/mips: fpu: Refactor conversion from ieee to mips exception flags
authorAleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Mon, 18 May 2020 20:09:15 +0000 (22:09 +0200)
committerAleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Tue, 9 Jun 2020 15:32:45 +0000 (17:32 +0200)
commit9579f7816855757c747f9428a8e53d0fe0a0e9b7
tree8e8d33ad908f49522fdeef485635904781d44064
parent485cd2e4ce35f24428bd1783ad31325acc67b350
target/mips: fpu: Refactor conversion from ieee to mips exception flags

The original coversion function is used for regular and MSA floating
point instructions handling. Since there are some nuanced differences
between regular and MSA floating point exception handling, provide two
instances of the conversion function, rather than just a single common
one. Inline both instances of this function instances for the sake of
performance. Improve variable naming in surrounding code for clarity.

Reviewed-by: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Message-Id: <20200518200920.17344-17-aleksandar.qemu.devel@gmail.com>
target/mips/fpu_helper.c
target/mips/internal.h
target/mips/msa_helper.c