sim-se: Add prlimit system call
[gem5.git] / src / sim / process.cc
index 89a82a6a1b493a598f94effaa552c3e18f169f14..bfc52c36122b0cda4b4edf3d71a70cd5ad70a3ce 100644 (file)
@@ -160,6 +160,15 @@ void
 Process::clone(ThreadContext *otc, ThreadContext *ntc,
                Process *np, TheISA::IntReg flags)
 {
+#ifndef CLONE_VM
+#define CLONE_VM 0
+#endif
+#ifndef CLONE_FILES
+#define CLONE_FILES 0
+#endif
+#ifndef CLONE_THREAD
+#define CLONE_THREAD 0
+#endif
     if (CLONE_VM & flags) {
         /**
          * Share the process memory address space between the new process