Change the default function from setMiscRegWithEffect to setMiscReg
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Oct 2006 00:22:23 +0000 (20:22 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Oct 2006 00:22:23 +0000 (20:22 -0400)
--HG--
extra : convert_revision : bedf422d51a52b009390b1e94f5330f752be2b87

src/arch/isa_parser.py
src/arch/sparc/miscregfile.cc

index b235398f18b2202cb9e11a645ce9602c2ae60aee..6504c7b323651426f201e0c4e8115c753178d269 100755 (executable)
@@ -1316,7 +1316,7 @@ class ControlRegOperand(Operand):
     def makeWrite(self):
         if (self.ctype == 'float' or self.ctype == 'double'):
             error(0, 'Attempt to write control register as FP')
-        wb = 'xc->setMiscReg(%s, %s);\n' % (self.reg_spec, self.base_name)
+        wb = 'xc->setMiscRegWithEffect(%s, %s);\n' % (self.reg_spec, self.base_name)
         wb += 'if (traceData) { traceData->setData(%s); }' % \
               self.base_name
         return wb
index 8041e45c057e0d37158a9040047433c785836553..efaa22f67544d4803d4622d16a6832a94b7e64f3 100644 (file)
@@ -470,7 +470,7 @@ Fault MiscRegFile::setRegWithEffect(int miscReg,
 
         /** Floating Point Status Register */
         case MISCREG_FSR:
-          panic("Floating Point not implemented\n");
+          setReg(miscReg, val);
         default:
 #if FULL_SYSTEM
               setFSRegWithEffect(miscReg, val, tc);