summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/isa/insts/general_purpose/arithmetic/increment_and_decrement.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/arithmetic/increment_and_decrement.py b/src/arch/x86/isa/insts/general_purpose/arithmetic/increment_and_decrement.py
index b85dc6328..184b9da72 100644
--- a/src/arch/x86/isa/insts/general_purpose/arithmetic/increment_and_decrement.py
+++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/increment_and_decrement.py
@@ -108,4 +108,19 @@ def macroop DEC_P
subi t1, t1, 1, flags=(OF, SF, ZF, AF, PF)
st t1, seg, riprel, disp
};
+
+def macroop DEC_LOCKED_M
+{
+ ldstl t1, seg, sib, disp
+ subi t1, t1, 1, flags=(OF, SF, ZF, AF, PF)
+ stul t1, seg, sib, disp
+};
+
+def macroop DEC_LOCKED_P
+{
+ rdip t7
+ ldstl t1, seg, riprel, disp
+ subi t1, t1, 1, flags=(OF, SF, ZF, AF, PF)
+ stul t1, seg, riprel, disp
+};
'''