process.cc (11919:54c2e390fc22) process.cc (11920:fd3d65d70951)
1/*
2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 146 unchanged lines hidden (view full) ---

155 }
156 }
157}
158
159void
160Process::clone(ThreadContext *otc, ThreadContext *ntc,
161 Process *np, TheISA::IntReg flags)
162{
1/*
2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 146 unchanged lines hidden (view full) ---

155 }
156 }
157}
158
159void
160Process::clone(ThreadContext *otc, ThreadContext *ntc,
161 Process *np, TheISA::IntReg flags)
162{
163#ifndef CLONE_VM
164#define CLONE_VM 0
165#endif
166#ifndef CLONE_FILES
167#define CLONE_FILES 0
168#endif
169#ifndef CLONE_THREAD
170#define CLONE_THREAD 0
171#endif
163 if (CLONE_VM & flags) {
164 /**
165 * Share the process memory address space between the new process
166 * and the old process. Changes in one will be visible in the other
167 * due to the pointer use.
168 */
169 delete np->pTable;
170 np->pTable = pTable;

--- 478 unchanged lines hidden ---
172 if (CLONE_VM & flags) {
173 /**
174 * Share the process memory address space between the new process
175 * and the old process. Changes in one will be visible in the other
176 * due to the pointer use.
177 */
178 delete np->pTable;
179 np->pTable = pTable;

--- 478 unchanged lines hidden ---