process.cc (11905:4a771f8756ad) | process.cc (11906:4b99c1bb3b72) |
---|---|
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 --- 326 unchanged lines hidden (view full) --- 335 // this address. 336 if (vaddr < stack_min && vaddr >= stack_base - max_stack_size) { 337 while (vaddr < stack_min) { 338 stack_min -= TheISA::PageBytes; 339 if (stack_base - stack_min > max_stack_size) 340 fatal("Maximum stack size exceeded\n"); 341 allocateMem(stack_min, TheISA::PageBytes); 342 inform("Increasing stack size by one page."); | 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 --- 326 unchanged lines hidden (view full) --- 335 // this address. 336 if (vaddr < stack_min && vaddr >= stack_base - max_stack_size) { 337 while (vaddr < stack_min) { 338 stack_min -= TheISA::PageBytes; 339 if (stack_base - stack_min > max_stack_size) 340 fatal("Maximum stack size exceeded\n"); 341 allocateMem(stack_min, TheISA::PageBytes); 342 inform("Increasing stack size by one page."); |
343 }; | 343 } |
344 memState->setStackMin(stack_min); 345 return true; 346 } 347 return false; 348} 349 350void 351Process::serialize(CheckpointOut &cp) const --- 289 unchanged lines hidden --- | 344 memState->setStackMin(stack_min); 345 return true; 346 } 347 return false; 348} 349 350void 351Process::serialize(CheckpointOut &cp) const --- 289 unchanged lines hidden --- |