From 5c940fec0aebcce5f81063f195220184918b377b Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 11 Mar 2013 13:15:46 -0500 Subject: x86: implement some of the x87 instructions This patch implements ftan, fprem, fyl2x, fld* floating-point instructions. --- .../insts/x87/control/save_and_restore_x87_control_word.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/isa/insts/x87/control') diff --git a/src/arch/x86/isa/insts/x87/control/save_and_restore_x87_control_word.py b/src/arch/x86/isa/insts/x87/control/save_and_restore_x87_control_word.py index 5657c8d47..af465f014 100644 --- a/src/arch/x86/isa/insts/x87/control/save_and_restore_x87_control_word.py +++ b/src/arch/x86/isa/insts/x87/control/save_and_restore_x87_control_word.py @@ -36,7 +36,17 @@ # Authors: Gabe Black microcode = ''' -# FLDCW + +def macroop FLDCW_M { + ld t1, seg, sib, disp, dataSize=2 + wrval fcw, t1 +}; + +def macroop FLDCW_P { + ld t1, seg, sib, disp, dataSize=2 + wrval fcw, t1 +}; + # FSTCW def macroop FNSTCW_M { -- cgit v1.2.3