aboutsummaryrefslogtreecommitdiff
path: root/target/riscv/internals.h
diff options
context:
space:
mode:
authorLIU Zhiwei <zhiwei_liu@c-sky.com>2020-07-01 23:25:28 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-07-02 09:19:33 -0700
commit121ddbb36f17d24a7f39d6024d9b3145d154a98c (patch)
tree12d0a4f57ad989df17d0e4d97f9ce1d940e7eb1e /target/riscv/internals.h
parent2a68e9e568faddf4d689a37fa6895bcb8404a677 (diff)
downloadqemu-121ddbb36f17d24a7f39d6024d9b3145d154a98c.zip
qemu-121ddbb36f17d24a7f39d6024d9b3145d154a98c.tar.gz
qemu-121ddbb36f17d24a7f39d6024d9b3145d154a98c.tar.bz2
target/riscv: vector floating-point classify instructions
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20200701152549.1218-41-zhiwei_liu@c-sky.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/internals.h')
-rw-r--r--target/riscv/internals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/riscv/internals.h b/target/riscv/internals.h
index e59e8b3..f3cea47 100644
--- a/target/riscv/internals.h
+++ b/target/riscv/internals.h
@@ -27,4 +27,9 @@ FIELD(VDATA, VM, 8, 1)
FIELD(VDATA, LMUL, 9, 2)
FIELD(VDATA, NF, 11, 4)
FIELD(VDATA, WD, 11, 1)
+
+/* float point classify helpers */
+target_ulong fclass_h(uint64_t frs1);
+target_ulong fclass_s(uint64_t frs1);
+target_ulong fclass_d(uint64_t frs1);
#endif