summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/isa/insts/general_purpose/data_transfer/xchg.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/data_transfer/xchg.py b/src/arch/x86/isa/insts/general_purpose/data_transfer/xchg.py
index 3f243f5d8..521be95e5 100644
--- a/src/arch/x86/isa/insts/general_purpose/data_transfer/xchg.py
+++ b/src/arch/x86/isa/insts/general_purpose/data_transfer/xchg.py
@@ -95,4 +95,19 @@ def macroop XCHG_P_R
st reg, seg, riprel, disp
mov reg, reg, t1
};
+
+def macroop XCHG_LOCKED_M_R
+{
+ ldstl t1, seg, sib, disp
+ stul reg, seg, sib, disp
+ mov reg, reg, t1
+};
+
+def macroop XCHG_LOCKED_P_R
+{
+ rdip t7
+ ldstl t1, seg, riprel, disp
+ stul reg, seg, riprel, disp
+ mov reg, reg, t1
+};
'''