summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py15
1 files changed, 15 insertions, 0 deletions
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
+};
'''