projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: c++-ify command line arguments in the m5 utility.
[gem5.git]
/
util
/
m5
/
src
/
inst_call_type.cc
diff --git
a/util/m5/src/inst_call_type.cc
b/util/m5/src/inst_call_type.cc
index 49f87abcc20e65f8e64ad32a9d3a4f3842565d3a..e19f6018b9b4736c6e7cb489f8a7670f09ed94eb 100644
(file)
--- a/
util/m5/src/inst_call_type.cc
+++ b/
util/m5/src/inst_call_type.cc
@@
-47,8
+47,8
@@
class InstCallType : public CallType
bool
checkArgs(Args &args) override
{
- if (args.
argc && strcmp(args.argv[0], "--inst") == 0
) {
-
pop_arg(&args
);
+ if (args.
size() && args[0] == "--inst"
) {
+
args.pop(
);
return true;
}
return false;