process.cc (14014:ce216ee5d886) | process.cc (14022:a7cdc33dab35) |
---|---|
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 --- 147 unchanged lines hidden (view full) --- 156 if (CLONE_VM & flags) { 157 /** 158 * Share the process memory address space between the new process 159 * and the old process. Changes in one will be visible in the other 160 * due to the pointer use. 161 */ 162 delete np->pTable; 163 np->pTable = pTable; | 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 --- 147 unchanged lines hidden (view full) --- 156 if (CLONE_VM & flags) { 157 /** 158 * Share the process memory address space between the new process 159 * and the old process. Changes in one will be visible in the other 160 * due to the pointer use. 161 */ 162 delete np->pTable; 163 np->pTable = pTable; |
164 ntc->getMemProxy().setPageTable(np->pTable); | 164 auto &proxy = dynamic_cast<SETranslatingPortProxy &>( 165 ntc->getMemProxy()); 166 proxy.setPageTable(np->pTable); |
165 166 np->memState = memState; 167 } else { 168 /** 169 * Duplicate the process memory address space. The state needs to be 170 * copied over (rather than using pointers to share everything). 171 */ 172 typedef std::vector<pair<Addr,Addr>> MapVec; --- 373 unchanged lines hidden --- | 167 168 np->memState = memState; 169 } else { 170 /** 171 * Duplicate the process memory address space. The state needs to be 172 * copied over (rather than using pointers to share everything). 173 */ 174 typedef std::vector<pair<Addr,Addr>> MapVec; --- 373 unchanged lines hidden --- |