FINISH off merge of mips mt/dsp isa extensions by adding the ControlBitfieldOPerand...
authorKorey Sewell <ksewell@umich.edu>
Sat, 23 Jun 2007 01:09:35 +0000 (21:09 -0400)
committerKorey Sewell <ksewell@umich.edu>
Sat, 23 Jun 2007 01:09:35 +0000 (21:09 -0400)
src/arch/isa_parser.py:
    add back deleted writeback in Control Operand

--HG--
extra : convert_revision : dba11af220a1281fa53f79d87e4f8752bdfc56db

src/arch/isa_parser.py

index 95c57af2fc3dd841f119153ba701539d1b13bef2..754a64fdb858984beec68c4b539db0ae153b0be4 100755 (executable)
@@ -25,7 +25,6 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 # Authors: Steve Reinhardt
-#          Gabe Black
 #          Korey Sewell
 
 import os
@@ -1411,6 +1410,9 @@ class ControlRegOperand(Operand):
             error(0, 'Attempt to write control register as FP')
         wb = 'xc->setMiscRegOperand(this, %s, %s);\n' % \
              (self.dest_reg_idx, self.base_name)
+        wb += 'if (traceData) { traceData->setData(%s); }' % \
+              self.base_name
+        return wb
 
 class ControlBitfieldOperand(ControlRegOperand):
     def makeRead(self):