X86: Implement a locking version of INC.
This commit is contained in:
parent
2394f73f90
commit
4f2d4f466a
1 changed files with 15 additions and 0 deletions
|
@ -74,6 +74,21 @@ def macroop INC_P
|
|||
st t1, seg, riprel, disp
|
||||
};
|
||||
|
||||
def macroop INC_LOCKED_M
|
||||
{
|
||||
ldstl t1, seg, sib, disp
|
||||
addi t1, t1, 1, flags=(OF, SF, ZF, AF, PF)
|
||||
stul t1, seg, sib, disp
|
||||
};
|
||||
|
||||
def macroop INC_LOCKED_P
|
||||
{
|
||||
rdip t7
|
||||
ldstl t1, seg, riprel, disp
|
||||
addi t1, t1, 1, flags=(OF, SF, ZF, AF, PF)
|
||||
stul t1, seg, riprel, disp
|
||||
};
|
||||
|
||||
def macroop DEC_R
|
||||
{
|
||||
subi reg, reg, 1, flags=(OF, SF, ZF, AF, PF)
|
||||
|
|
Loading…
Reference in a new issue