X86: Implement a locking version of XCHG.
This commit is contained in:
parent
750f5a0a67
commit
b8f81c62a2
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue