From: Gabe Black Date: Sun, 19 Apr 2009 11:56:28 +0000 (-0700) Subject: X86: Implement a locking version of NEG. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2394f73f908c86488341625963a792382baeff78;p=gem5.git X86: Implement a locking version of NEG. --- diff --git a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py index c8a2d1d1c..fbef20dc1 100644 --- a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py +++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py @@ -425,4 +425,19 @@ def macroop NEG_P sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF) st t1, seg, riprel, disp }; + +def macroop NEG_LOCKED_M +{ + ldstl t1, seg, sib, disp + sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF) + stul t1, seg, sib, disp +}; + +def macroop NEG_LOCKED_P +{ + rdip t7 + ldstl t1, seg, riprel, disp + sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF) + stul t1, seg, riprel, disp +}; '''