This fix addresses an ill formed if statement that fails
authorRichard Strong <rstrong@cs.ucsd.edu>
Mon, 12 Jan 2009 06:45:03 +0000 (22:45 -0800)
committerRichard Strong <rstrong@cs.ucsd.edu>
Mon, 12 Jan 2009 06:45:03 +0000 (22:45 -0800)
to compile. The fix was the simple addition of another set
of parenthesis to ensure the correct condition resolution.

src/cpu/exetrace.cc

index 4c0f83a217effadc1725d29d4aa3703e622f008d..7227602b5dfbaaf77afe1c2881026bbddaba1f46 100644 (file)
@@ -128,10 +128,10 @@ Trace::ExeTracerRecord::dump()
      * complete/print when they fault.
      */
     if (IsOn(ExecMacro) && staticInst->isMicroop() &&
-            (IsOn(ExecMicro) &&
+            ((IsOn(ExecMicro) &&
              macroStaticInst && staticInst->isFirstMicroop()) ||
             (!IsOn(ExecMicro) &&
-             macroStaticInst && staticInst->isLastMicroop())) {
+             macroStaticInst && staticInst->isLastMicroop()))) {
         traceInst(macroStaticInst, false);
     }
     if (IsOn(ExecMicro) || !staticInst->isMicroop()) {