summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-20 20:20:17 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-20 20:20:17 -0700
commitdc0a017ed0ce192b2959ae0cc08522d04a4281a1 (patch)
treefdf65ab1aa386dade4870396d90afd4ad79719e0
parent5161bc19d9ce5199ec48a6f57c4d058a6db6cb15 (diff)
downloadgem5-dc0a017ed0ce192b2959ae0cc08522d04a4281a1.tar.xz
isa_parser: Get rid of the now unused ControlBitfieldOperand.
-rwxr-xr-xsrc/arch/isa_parser.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py
index 6f002c05b..d5b5bbe4f 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -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