projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac8b01d
)
Fix a small bug in parameter processing that would always result
author
Nathan Binkert
<binkertn@umich.edu>
Tue, 17 Aug 2004 15:19:04 +0000
(11:19 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Tue, 17 Aug 2004 15:19:04 +0000
(11:19 -0400)
in at least on entry in a VectorParam even if the string was
empty.
sim/param.cc:
if there are no parameters, leave the vector empty.
--HG--
extra : convert_revision :
d0d41baa8c77651a27ac6a4d02cc388711f47dbe
sim/param.cc
patch
|
blob
|
history
diff --git
a/sim/param.cc
b/sim/param.cc
index 4f9d0a577e57271dfa387e7b0e3f6a275a2926fe..84ecbf8f96b4fcab1176d4987c9cf7b66fa93a64 100644
(file)
--- a/
sim/param.cc
+++ b/
sim/param.cc
@@
-211,6
+211,11
@@
template <class T>
void
VectorParam<T>::parse(const string &s)
{
+ if (s.empty()) {
+ wasSet = true;
+ return;
+ }
+
vector<string> tokens;
tokenize(tokens, s, ' ');