summaryrefslogtreecommitdiff
path: root/target/m68k/translate.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-03-12 21:27:20 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-03-13 16:34:02 +0100
commit68d0ed37866de2c5cafc4e2589e263961b2e8cd6 (patch)
treebb45b62d5235337a9576923f9f9efd5c12b0f628 /target/m68k/translate.c
parent5add1ac42faffd3d3639101fa778dced693a65a3 (diff)
downloadqemu-68d0ed37866de2c5cafc4e2589e263961b2e8cd6.zip
target/m68k: implement fcos
Using a local m68k floatx80_cos() [copied from previous: Written by Andreas Grabher for Previous, NeXT Computer Emulator.] Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180312202728.23790-4-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/translate.c')
-rw-r--r--target/m68k/translate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index 05ab75e43f..f47388da4b 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -5099,6 +5099,9 @@ DISAS_INSN(fpu)
case 0x5e: /* fdneg */
gen_helper_fdneg(cpu_env, cpu_dest, cpu_src);
break;
+ case 0x1d: /* fcos */
+ gen_helper_fcos(cpu_env, cpu_dest, cpu_src);
+ break;
case 0x1e: /* fgetexp */
gen_helper_fgetexp(cpu_env, cpu_dest, cpu_src);
break;