summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Strong <rstrong@cs.ucsd.edu>2009-01-11 22:45:03 -0800
committerRichard Strong <rstrong@cs.ucsd.edu>2009-01-11 22:45:03 -0800
commit81180a3bf005586d7ca1fae77dd7888b99e45864 (patch)
treee20bfcfbce7094c9ca178f4e585a6c7caa9c81a3
parent49dcab0ce69ba37938ae5701982b1d1a093d4ee8 (diff)
downloadgem5-81180a3bf005586d7ca1fae77dd7888b99e45864.tar.xz
This fix addresses an ill formed if statement that fails
to compile. The fix was the simple addition of another set of parenthesis to ensure the correct condition resolution.
-rw-r--r--src/cpu/exetrace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc
index 4c0f83a21..7227602b5 100644
--- a/src/cpu/exetrace.cc
+++ b/src/cpu/exetrace.cc
@@ -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()) {