diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-09-19 18:28:34 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-09-19 18:28:34 -0700 |
commit | 3cd95a2748ebed72cedd64f7f4c945eef6e2ccf7 (patch) | |
tree | f6b50b9fd94288881217facda080272854e1289e /src/arch/x86/isa/insts/x87 | |
parent | a75b6f51060ceaa52014aa4dd6aadc6ca83365f8 (diff) | |
download | gem5-3cd95a2748ebed72cedd64f7f4c945eef6e2ccf7.tar.xz |
X86: Implement the fld, fst, and fstp instructions.
--HG--
extra : convert_revision : 7dd274bdc3c34839c17d9012a745d7c95dfcfdd8
Diffstat (limited to 'src/arch/x86/isa/insts/x87')
-rw-r--r-- | src/arch/x86/isa/insts/x87/data_transfer_and_conversion/load_or_store_floating_point.py | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/arch/x86/isa/insts/x87/data_transfer_and_conversion/load_or_store_floating_point.py b/src/arch/x86/isa/insts/x87/data_transfer_and_conversion/load_or_store_floating_point.py index 3507347fe..37574da34 100644 --- a/src/arch/x86/isa/insts/x87/data_transfer_and_conversion/load_or_store_floating_point.py +++ b/src/arch/x86/isa/insts/x87/data_transfer_and_conversion/load_or_store_floating_point.py @@ -54,7 +54,36 @@ # Authors: Gabe Black microcode = ''' -# FLD -# FST -# FSTP +def macroop FLD_M { + ldfp ufp1, seg, sib, disp + movfp st(1), ufp1, spm=-1 +}; + +def macroop FLD_P { + rdip t7 + ldfp ufp1, seg, riprel, disp + movfp st(1), ufp1, spm=-1 +}; + +def macroop FST_M { + movfp st(0), ufp1 + stfp ufp1, seg, sib, disp +}; + +def macroop FST_P { + movfp st(0), ufp1 + rdip t7 + stfp ufp1, seg, riprel, disp +}; + +def macroop FSTP_M { + movfp st(0), ufp1, spm=1 + stfp ufp1, seg, sib, disp +}; + +def macroop FSTP_P { + movfp st(0), ufp1, spm=1 + rdip t7 + stfp ufp1, seg, riprel, disp +}; ''' |