From 5add1ac42faffd3d3639101fa778dced693a65a3 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Mon, 12 Mar 2018 21:27:19 +0100 Subject: target/m68k: implement fsin Using a local m68k floatx80_sin() [copied from previous: Written by Andreas Grabher for Previous, NeXT Computer Emulator.] Signed-off-by: Laurent Vivier Message-Id: <20180312202728.23790-3-laurent@vivier.eu> --- target/m68k/fpu_helper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/m68k/fpu_helper.c') diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c index c41115ea05..a6cfb4db1a 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -597,3 +597,8 @@ void HELPER(ftan)(CPUM68KState *env, FPReg *res, FPReg *val) { res->d = floatx80_tan(val->d, &env->fp_status); } + +void HELPER(fsin)(CPUM68KState *env, FPReg *res, FPReg *val) +{ + res->d = floatx80_sin(val->d, &env->fp_status); +} -- cgit v1.2.3