From: Gabe Black Date: Fri, 27 Oct 2006 00:22:23 +0000 (-0400) Subject: Change the default function from setMiscRegWithEffect to setMiscReg X-Git-Tag: m5_2.0_beta2~70^2~21^2~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e441be1b82171651308c22eac01c854e7813c2dd;p=gem5.git Change the default function from setMiscRegWithEffect to setMiscReg --HG-- extra : convert_revision : bedf422d51a52b009390b1e94f5330f752be2b87 --- diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py index b235398f1..6504c7b32 100755 --- a/src/arch/isa_parser.py +++ b/src/arch/isa_parser.py @@ -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 diff --git a/src/arch/sparc/miscregfile.cc b/src/arch/sparc/miscregfile.cc index 8041e45c0..efaa22f67 100644 --- a/src/arch/sparc/miscregfile.cc +++ b/src/arch/sparc/miscregfile.cc @@ -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);