diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-11 13:15:46 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-11 13:15:46 -0500 |
commit | 5c940fec0aebcce5f81063f195220184918b377b (patch) | |
tree | c9e754107957d63e7331ef13d2527a3874524393 /src/arch/x86/isa/insts/x87/control | |
parent | 82f600e02ded4d7162dd9286f790462b9ab5d554 (diff) | |
download | gem5-5c940fec0aebcce5f81063f195220184918b377b.tar.xz |
x86: implement some of the x87 instructions
This patch implements ftan, fprem, fyl2x, fld* floating-point instructions.
Diffstat (limited to 'src/arch/x86/isa/insts/x87/control')
-rw-r--r-- | src/arch/x86/isa/insts/x87/control/save_and_restore_x87_control_word.py | 12 |
1 files changed, 11 insertions, 1 deletions
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 { |