Jason Lowe-Power has uploaded this change for review. ( https://gem5-review.googlesource.com/8904

Change subject: sim-se,arch-x86: Enable prlimit syscall
......................................................................

sim-se,arch-x86: Enable prlimit syscall

I'm not sure why the prlimit syscall wasn't enabled before. This enables
it and fixes an implicit fallthrough warning since the function is now
compiled.

Change-Id: Ieec4651000b3b4de05ba5ba11fdfa5392a5477e7
Signed-off-by: Jason Lowe-Power <ja...@lowepower.com>
---
M src/arch/x86/linux/process.cc
M src/sim/syscall_emul.hh
2 files changed, 2 insertions(+), 1 deletion(-)



diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index b3e9586..1bde67e 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -522,7 +522,7 @@
     /* 299 */ SyscallDesc("recvmmsg", unimplementedFunc),
     /* 300 */ SyscallDesc("fanotify_init", unimplementedFunc),
     /* 301 */ SyscallDesc("fanotify_mark", unimplementedFunc),
-    /* 302 */ SyscallDesc("prlimit64", unimplementedFunc),
+    /* 302 */ SyscallDesc("prlimit64", prlimitFunc<X86Linux64>),
     /* 303 */ SyscallDesc("name_to_handle_at", unimplementedFunc),
     /* 304 */ SyscallDesc("open_by_handle_at", unimplementedFunc),
     /* 305 */ SyscallDesc("clock_adjtime", unimplementedFunc),
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index eaa5e54..e5b0f45 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1731,6 +1731,7 @@
             rlp->rlim_cur = rlp->rlim_max = 256*1024*1024;
             rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
             rlp->rlim_max = TheISA::htog(rlp->rlim_max);
+            break;
           default:
             warn("prlimit: unimplemented resource %d", resource);
             return -EINVAL;

--
To view, visit https://gem5-review.googlesource.com/8904
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ieec4651000b3b4de05ba5ba11fdfa5392a5477e7
Gerrit-Change-Number: 8904
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Lowe-Power <ja...@lowepower.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to