projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9cae4a
)
misc: Fix argument handling for m5 initparam util
author
Gabor Dozsa
<gabor.dozsa@arm.com>
Wed, 16 Mar 2016 16:23:42 +0000
(16:23 +0000)
committer
Gabor Dozsa
<gabor.dozsa@arm.com>
Wed, 16 Mar 2016 16:23:42 +0000
(16:23 +0000)
util/m5/m5.c
patch
|
blob
|
history
diff --git
a/util/m5/m5.c
b/util/m5/m5.c
index f773153dad5465bc84a27d1daa5c367e89fcaae5..118ac94479e92482a67914a79bc5117bfa404d2b 100644
(file)
--- a/
util/m5/m5.c
+++ b/
util/m5/m5.c
@@
-86,7
+86,7
@@
parse_int_args(int argc, char *argv[], uint64_t ints[], int len)
void
parse_str_args_to_regs(int argc, char *argv[], uint64_t regs[], int len)
{
- if (argc > 1 ||
strlen(argv[0]) > len * sizeof(uint64_t
))
+ if (argc > 1 ||
(argc > 0 && strlen(argv[0]) > len * sizeof(uint64_t)
))
usage();
int i;