summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-19 04:56:08 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-19 04:56:08 -0700
commit193265c6e5782a72197e7a568ebb1d4f4ced4bfb (patch)
tree67aec34946b62d09e9dc12a64f96136aa2ab78a4 /src
parent2f607b882ce3f8e39176983d1bf9c98942ffaa1c (diff)
downloadgem5-193265c6e5782a72197e7a568ebb1d4f4ced4bfb.tar.xz
X86: Implement a locking version of ADC.
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 577c50367..557811eb7 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
@@ -226,6 +226,23 @@ def macroop ADC_P_I
st t1, seg, riprel, disp
};
+def macroop ADC_LOCKED_M_I
+{
+ limm t2, imm
+ ldstl t1, seg, sib, disp
+ adc t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, sib, disp
+};
+
+def macroop ADC_LOCKED_P_I
+{
+ rdip t7
+ limm t2, imm
+ ldstl t1, seg, riprel, disp
+ adc t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, riprel, disp
+};
+
def macroop ADC_M_R
{
ldst t1, seg, sib, disp
@@ -241,6 +258,21 @@ def macroop ADC_P_R
st t1, seg, riprel, disp
};
+def macroop ADC_LOCKED_M_R
+{
+ ldstl t1, seg, sib, disp
+ adc t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, sib, disp
+};
+
+def macroop ADC_LOCKED_P_R
+{
+ rdip t7
+ ldstl t1, seg, riprel, disp
+ adc t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
+ stul t1, seg, riprel, disp
+};
+
def macroop ADC_R_M
{
ld t1, seg, sib, disp