summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-19 04:56:11 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-19 04:56:11 -0700
commite742cad6f4363e242e17c516f49edee051340924 (patch)
tree5af23a20fc6cb6cf538edae4af563c34f6f86b03 /src
parent193265c6e5782a72197e7a568ebb1d4f4ced4bfb (diff)
downloadgem5-e742cad6f4363e242e17c516f49edee051340924.tar.xz
X86: Implement a locking version of SBB.
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py
index 557811eb7..10c06efb6 100644
--- a/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py
+++ b/src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py
@@ -327,6 +327,23 @@ def macroop SBB_P_I
st t1, seg, riprel, disp
};
+def macroop SBB_LOCKED_M_I
+{
+ limm t2, imm
+ ldstl t1, seg, sib, disp
+ sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, sib, disp
+};
+
+def macroop SBB_LOCKED_P_I
+{
+ rdip t7
+ limm t2, imm
+ ldstl t1, seg, riprel, disp
+ sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, riprel, disp
+};
+
def macroop SBB_M_R
{
ldst t1, seg, sib, disp
@@ -342,6 +359,21 @@ def macroop SBB_P_R
st t1, seg, riprel, disp
};
+def macroop SBB_LOCKED_M_R
+{
+ ldstl t1, seg, sib, disp
+ sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, sib, disp
+};
+
+def macroop SBB_LOCKED_P_R
+{
+ rdip t7
+ ldstl t1, seg, riprel, disp
+ sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, riprel, disp
+};
+
def macroop NEG_R
{
sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF)