diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:56:20 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:56:20 -0700 |
commit | 750f5a0a67ccbce9b11c8ad308863be87ce89fbc (patch) | |
tree | 27f16ed86c612b072c959ab2207213ccf2d1195c /src/arch/x86/isa/insts/general_purpose/logical.py | |
parent | cfb289ebebe18f75e464bc32fe54c535a3c9370a (diff) | |
download | gem5-750f5a0a67ccbce9b11c8ad308863be87ce89fbc.tar.xz |
X86: Implement a locking version of XOR.
Diffstat (limited to 'src/arch/x86/isa/insts/general_purpose/logical.py')
-rw-r--r-- | src/arch/x86/isa/insts/general_purpose/logical.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/logical.py b/src/arch/x86/isa/insts/general_purpose/logical.py index 97b09fb01..c57d306dc 100644 --- a/src/arch/x86/isa/insts/general_purpose/logical.py +++ b/src/arch/x86/isa/insts/general_purpose/logical.py @@ -170,6 +170,23 @@ def macroop XOR_P_I st t1, seg, riprel, disp }; +def macroop XOR_LOCKED_M_I +{ + limm t2, imm + ldstl t1, seg, sib, disp + xor t1, t1, t2, flags=(OF,SF,ZF,PF,CF) + stul t1, seg, sib, disp +}; + +def macroop XOR_LOCKED_P_I +{ + limm t2, imm + rdip t7 + ldstl t1, seg, riprel, disp + xor t1, t1, t2, flags=(OF,SF,ZF,PF,CF) + stul t1, seg, riprel, disp +}; + def macroop XOR_M_R { ldst t1, seg, sib, disp @@ -185,6 +202,21 @@ def macroop XOR_P_R st t1, seg, riprel, disp }; +def macroop XOR_LOCKED_M_R +{ + ldstl t1, seg, sib, disp + xor t1, t1, reg, flags=(OF,SF,ZF,PF,CF) + stul t1, seg, sib, disp +}; + +def macroop XOR_LOCKED_P_R +{ + rdip t7 + ldstl t1, seg, riprel, disp + xor t1, t1, reg, flags=(OF,SF,ZF,PF,CF) + stul t1, seg, riprel, disp +}; + def macroop XOR_R_M { ld t1, seg, sib, disp |