summaryrefslogtreecommitdiff
path: root/util/statetrace/printer.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-07-29 13:25:14 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2007-07-29 13:25:14 -0700
commit08474ccf68e14f59b4517c6024a9bc6ecbd4a1d5 (patch)
tree5c1dc885b4fd33fc48d91a9ce489e24c88c9f3c2 /util/statetrace/printer.cc
parent4a7d0c4b79450e05b87da4cfc48c2361758127c1 (diff)
parent362ff1bcebd78c0c247e435eac657c8a1134b1fb (diff)
downloadgem5-08474ccf68e14f59b4517c6024a9bc6ecbd4a1d5.tar.xz
Merge Gabe's changes from head.
--HG-- extra : convert_revision : d00b7b09c7f19bc0e37b385ef7c124f69c0e917f
Diffstat (limited to 'util/statetrace/printer.cc')
-rw-r--r--util/statetrace/printer.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/statetrace/printer.cc b/util/statetrace/printer.cc
index b14671f2c..178972ea8 100644
--- a/util/statetrace/printer.cc
+++ b/util/statetrace/printer.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 The Regents of The University of Michigan
+ * Copyright (c) 2006-2007 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -181,7 +181,10 @@ bool NestingPrinter::configure(string config)
lastEndPos = endPos;
constStrings.push_back(prefix);
string subConfig, subString;
- int commaPos, lastCommaPos, childSwitchVar;
+ long int commaPos, lastCommaPos, childSwitchVar;
+ //Set up the register printer
+ RegPrinter * regPrinter = new RegPrinter(child);
+ NestingPrinter * nestingPrinter = new NestingPrinter(child);
switch(type)
{
//If we found a plain register printer
@@ -189,8 +192,6 @@ bool NestingPrinter::configure(string config)
numPrinters++;
//Get the register name
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
- //Set up the register printer
- RegPrinter * regPrinter = new RegPrinter(child);
if(!regPrinter->configure(subConfig))
{
delete regPrinter;
@@ -203,7 +204,6 @@ bool NestingPrinter::configure(string config)
case PRINTER_NESTING:
numPrinters++;
//Punt on reading in all the parameters of the nesting printer
- NestingPrinter * nestingPrinter = new NestingPrinter(child);
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
lastCommaPos = string::npos;
commaPos = subConfig.find(",");