aboutsummaryrefslogtreecommitdiff
path: root/target/m68k/fpu_helper.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-03-05 21:39:04 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-03-09 15:50:36 +0100
commit4b5c65b8f02a057bc1b77839b5012544f96fec80 (patch)
tree4c28b87d667c8222d469eec4140c83af6df5d3f3 /target/m68k/fpu_helper.c
parent9a069775a8087cbd6fa8c479b69be8d37bd90351 (diff)
downloadqemu-4b5c65b8f02a057bc1b77839b5012544f96fec80.zip
qemu-4b5c65b8f02a057bc1b77839b5012544f96fec80.tar.gz
qemu-4b5c65b8f02a057bc1b77839b5012544f96fec80.tar.bz2
target/m68k: implement flognp1
Using a local m68k floatx80_lognp1() [copied from previous: Written by Andreas Grabher for Previous, NeXT Computer Emulator.] Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180305203910.10391-3-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/fpu_helper.c')
-rw-r--r--target/m68k/fpu_helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c
index cdb9b50..6140646 100644
--- a/target/m68k/fpu_helper.c
+++ b/target/m68k/fpu_helper.c
@@ -557,3 +557,8 @@ void HELPER(fscale)(CPUM68KState *env, FPReg *res, FPReg *val0, FPReg *val1)
{
res->d = floatx80_scale(val1->d, val0->d, &env->fp_status);
}
+
+void HELPER(flognp1)(CPUM68KState *env, FPReg *res, FPReg *val)
+{
+ res->d = floatx80_lognp1(val->d, &env->fp_status);
+}