Tuan Ta has submitted this change and it was merged. (
https://gem5-review.googlesource.com/6903 )
Change subject: sim: Fix a bug in prlimit syscall in SE mode
......................................................................
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 <[email protected]>
Maintainer: Brandon Potter <[email protected]>
---
M src/sim/syscall_emul.hh
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Alec Roelke: Looks good to me, approved
Brandon Potter: Looks good to me, approved
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index a24028f..2ffd6d6 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1705,8 +1705,7 @@
Addr o = process->getSyscallArg(tc, index);
if (o != 0)
{
- TypedBufferArg<typename OS::rlimit> rlp(
- process->getSyscallArg(tc, index));
+ TypedBufferArg<typename OS::rlimit> rlp(o);
switch (resource) {
case OS::TGT_RLIMIT_STACK:
// max stack size in bytes: make up a number (8MB for now)
--
To view, visit https://gem5-review.googlesource.com/6903
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I97808f7234cd2622cb3eb2f1e0beb7fc8cf492c1
Gerrit-Change-Number: 6903
Gerrit-PatchSet: 2
Gerrit-Owner: Tuan Ta <[email protected]>
Gerrit-Reviewer: Alec Roelke <[email protected]>
Gerrit-Reviewer: Brandon Potter <[email protected]>
Gerrit-Reviewer: Tuan Ta <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev