From 8d439c29ed86f55c454396fdd03d606cfa13a95a Mon Sep 17 00:00:00 2001 From: Pouya Fotouhi Date: Tue, 20 Aug 2019 19:54:29 -0500 Subject: arch-x86: implement movntq/movntdq instructions Non-temporal quadword/double-quadword move instructions. This change ignores the non-temporal hint and instructions are implemented to send cacheable request to memory. This would have some "performance" impact (i.e. having some cache pollution) to get better "correctness" in behavior. Change-Id: I2052ac0970f61a54bafb7332762debcb7103202d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20288 Tested-by: kokoro Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- .../insts/simd64/integer/data_transfer/move_non_temporal.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/isa/insts/simd64/integer/data_transfer') diff --git a/src/arch/x86/isa/insts/simd64/integer/data_transfer/move_non_temporal.py b/src/arch/x86/isa/insts/simd64/integer/data_transfer/move_non_temporal.py index f068a0693..ccd37f165 100644 --- a/src/arch/x86/isa/insts/simd64/integer/data_transfer/move_non_temporal.py +++ b/src/arch/x86/isa/insts/simd64/integer/data_transfer/move_non_temporal.py @@ -34,9 +34,19 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors: Gabe Black +# Pouya Fotouhi microcode = ''' -# MOVNTQ +def macroop MOVNTQ_M_MMX { + warn "MOVNTQ: Ignoring non-temporal hint, modeling as cacheable!" + stfp mmx, seg, sib, "DISPLACEMENT", dataSize=8 +}; + +def macroop MOVNTQ_P_MMX { + warn "MOVNTQ_P: Ignoring non-temporal hint, modeling as cacheable!" + rdip t7 + stfp mmx, seg, riprel, "DISPLACEMENT", dataSize=8 +}; def macroop MASKMOVQ_MMX_MMX { ldfp ufp1, ds, [1, t0, rdi], dataSize=8 -- cgit v1.2.3