syscall_emul: Argument retrieval bug fix
authorAlexandru Dutu <alexandru.dutu@amd.com>
Tue, 2 May 2017 17:56:36 +0000 (13:56 -0400)
committerAlexandru Duțu <alexandru.dutu@amd.com>
Fri, 5 May 2017 22:21:06 +0000 (22:21 +0000)
commit8020c689f9d9c77585ef9c5f8c627f1f2a7368f8
tree9527d1821acd2bd9c5de69737158505c54161801
parentaa598b3ad1d91e974378f18837f2fbcca909e805
syscall_emul: Argument retrieval bug fix

This commit fixes a stack-buffer underflow
by fixing the way the array is indexed.

Change-Id: I44400e2b99a2f8e1f48f673cd110b9dcd6480a72
Reviewed-on: https://gem5-review.googlesource.com/3040
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
src/sim/syscall_desc.cc