sim: fix out-of-bounds error in syscall_desc
Review Request #3815 - Created Feb. 16, 2017 and submitted
Information | |
---|---|
Brandon Potter | |
gem5 | |
default | |
Reviewers | |
Default | |
Changeset 11849:9152df7d2747 --------------------------- sim: fix out-of-bounds error in syscall_desc
Minor thing below. Since this is confusing, I think it could use more comments.
-
src/sim/syscall_desc.cc (Diff revision 1) -
Can you add a comment here. This is very confusing code. Maybe something like
// RHS is evaluated before LHS and getSyscallArg increments index (passed by reference).
Note: you should also add braces, if you add this inline comment.