sim: Fix a bug in prlimit syscall in SE mode
authorTuan Ta <qtt2@cornell.edu>
Thu, 21 Dec 2017 16:06:10 +0000 (11:06 -0500)
committerTuan Ta <qtt2@cornell.edu>
Fri, 5 Jan 2018 15:34:20 +0000 (15:34 +0000)
commitd1f665aad2417a68039bb5aa7b0afa77343cb319
tree430b35832b3810ca17f64928ff1be8a913d75952
parentba4d3df43c74613ca5381b9ecc4a7479b1de9c68
sim: Fix a bug in prlimit syscall in SE mode

The old_limit pointer is supposed to be the 4th argument (index 3) of
the prlimit syscall. This patch sets old_limit pointer to the correct
argument.

Change-Id: I97808f7234cd2622cb3eb2f1e0beb7fc8cf492c1
Reviewed-on: https://gem5-review.googlesource.com/6903
Reviewed-by: Alec Roelke <ar4jc@virginia.edu>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
src/sim/syscall_emul.hh