diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-03-05 21:39:08 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-03-09 15:50:38 +0100 |
commit | 40ad087330bee5394c9e78c97f909f580be69b58 (patch) | |
tree | 7a80308e90d2c110d4f7b37c97367fe759b36be8 /target/m68k/fpu_helper.c | |
parent | 67b453ed73fe65949c24e6ca2b43f6816a89a301 (diff) |
target/m68k: implement fetox
Using a local m68k floatx80_etox()
[copied from previous:
Written by Andreas Grabher for Previous, NeXT Computer Emulator.]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180305203910.10391-7-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/fpu_helper.c')
-rw-r--r-- | target/m68k/fpu_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/m68k/fpu_helper.c b/target/m68k/fpu_helper.c index 97a4501126..154666cbb5 100644 --- a/target/m68k/fpu_helper.c +++ b/target/m68k/fpu_helper.c @@ -577,3 +577,8 @@ void HELPER(flog2)(CPUM68KState *env, FPReg *res, FPReg *val) { res->d = floatx80_log2(val->d, &env->fp_status); } + +void HELPER(fetox)(CPUM68KState *env, FPReg *res, FPReg *val) +{ + res->d = floatx80_etox(val->d, &env->fp_status); +} |