sim-se: Fix fallthrough in prlimit
authorJason Lowe-Power <jason@lowepower.com>
Fri, 9 Mar 2018 18:58:44 +0000 (10:58 -0800)
committerJason Lowe-Power <jason@lowepower.com>
Thu, 15 Mar 2018 20:45:34 +0000 (20:45 +0000)
Change-Id: Ieec4651000b3b4de05ba5ba11fdfa5392a5477e7
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/8904
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>

src/sim/syscall_emul.hh

index eaa5e542cced7573d1505c5ae54d4f19f4bb7a50..e5b0f455a43609b960c9912464c3ce4a6e7afe9c 100644 (file)
@@ -1731,6 +1731,7 @@ prlimitFunc(SyscallDesc *desc, int callnum, Process *process,
             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;