isa_parser: Get rid of the now unused ControlBitfieldOperand.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 21 Jul 2009 03:20:17 +0000 (20:20 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 21 Jul 2009 03:20:17 +0000 (20:20 -0700)
src/arch/isa_parser.py

index 6f002c05ba196c950945d77d42d560eb4fee85b6..d5b5bbe4f9c56586082475689918e2ffc335da2c 100755 (executable)
@@ -1431,32 +1431,6 @@ class ControlRegOperand(Operand):
               self.base_name
         return wb
 
-class ControlBitfieldOperand(ControlRegOperand):
-    def makeRead(self):
-        bit_select = 0
-        if (self.ctype == 'float' or self.ctype == 'double'):
-            error(0, 'Attempt to read control register as FP')
-        if self.read_code != None:
-            return self.buildReadCode('readMiscReg')
-        base = 'xc->readMiscReg(%s)' % self.reg_spec
-        name = self.base_name
-        return '%s = bits(%s, %s_HI, %s_LO);' % \
-               (name, base, name, name)
-
-    def makeWrite(self):
-        if (self.ctype == 'float' or self.ctype == 'double'):
-            error(0, 'Attempt to write control register as FP')
-        if self.write_code != None:
-            return self.buildWriteCode('setMiscReg')
-        base = 'xc->readMiscReg(%s)' % self.reg_spec
-        name = self.base_name
-        wb_val = 'insertBits(%s, %s_HI, %s_LO, %s)' % \
-                    (base, name, name, self.base_name)
-        wb = 'xc->setMiscRegOperand(this, %s, %s );\n' % (self.dest_reg_idx, wb_val)
-        wb += 'if (traceData) { traceData->setData(%s); }' % \
-              self.base_name
-        return wb
-
 class MemOperand(Operand):
     def isMem(self):
         return 1