summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-11-04 19:06:45 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-11-04 19:06:45 -0500
commitd1fb5ad91e2429739b5a746fa36ab0ee822e33b7 (patch)
tree5de8845d89e8f1527583bffeca770caf75796431 /src
parentc8123cef1bd73a3e39e82bde53fb8befeb613341 (diff)
downloadgem5-d1fb5ad91e2429739b5a746fa36ab0ee822e33b7.tar.xz
TraceFlags: Fix off-by-one error with number of traceflags.
--HG-- extra : convert_revision : 668299fc0a9083be858fe2f6e8fde512ddac9e32
Diffstat (limited to 'src')
-rw-r--r--src/python/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/generate.py b/src/python/generate.py
index e52128de2..eead6ff5d 100644
--- a/src/python/generate.py
+++ b/src/python/generate.py
@@ -418,7 +418,7 @@ const char *Trace::flagStrings[] =
print >>f, '};'
print >>f
- print >>f, 'const int Trace::numFlagStrings = %d;' % len(allFlags)
+ print >>f, 'const int Trace::numFlagStrings = %d;' % (len(allFlags) + 1)
print >>f
#