process.cc (11378:8457e0a24e5d) process.cc (11386:94c09b607a84)
1/*
2 * Copyright (c) 2014 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

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

177 sim_fd = fde_stdout->fd;
178 else if ((it = oemap.find(params->errout)) != oemap.end())
179 sim_fd = it->second;
180 else
181 sim_fd = openOutputFile(params->errout);
182 fde_stderr->set(sim_fd, params->errout, O_WRONLY | O_CREAT | O_TRUNC,
183 0664, false);
184
1/*
2 * Copyright (c) 2014 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

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

177 sim_fd = fde_stdout->fd;
178 else if ((it = oemap.find(params->errout)) != oemap.end())
179 sim_fd = it->second;
180 else
181 sim_fd = openOutputFile(params->errout);
182 fde_stderr->set(sim_fd, params->errout, O_WRONLY | O_CREAT | O_TRUNC,
183 0664, false);
184
185 mmap_start = mmap_end = 0;
185 mmap_end = 0;
186 nxm_start = nxm_end = 0;
187 // other parameters will be initialized when the program is loaded
188}
189
190
191void
192Process::regStats()
193{

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

407void
408Process::serialize(CheckpointOut &cp) const
409{
410 SERIALIZE_SCALAR(brk_point);
411 SERIALIZE_SCALAR(stack_base);
412 SERIALIZE_SCALAR(stack_size);
413 SERIALIZE_SCALAR(stack_min);
414 SERIALIZE_SCALAR(next_thread_stack_base);
186 nxm_start = nxm_end = 0;
187 // other parameters will be initialized when the program is loaded
188}
189
190
191void
192Process::regStats()
193{

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

407void
408Process::serialize(CheckpointOut &cp) const
409{
410 SERIALIZE_SCALAR(brk_point);
411 SERIALIZE_SCALAR(stack_base);
412 SERIALIZE_SCALAR(stack_size);
413 SERIALIZE_SCALAR(stack_min);
414 SERIALIZE_SCALAR(next_thread_stack_base);
415 SERIALIZE_SCALAR(mmap_start);
416 SERIALIZE_SCALAR(mmap_end);
417 SERIALIZE_SCALAR(nxm_start);
418 SERIALIZE_SCALAR(nxm_end);
419 pTable->serialize(cp);
420 for (int x = 0; x < fd_array->size(); x++) {
421 (*fd_array)[x].serializeSection(cp, csprintf("FDEntry%d", x));
422 }
423 SERIALIZE_SCALAR(M5_pid);
424
425}
426
427void
428Process::unserialize(CheckpointIn &cp)
429{
430 UNSERIALIZE_SCALAR(brk_point);
431 UNSERIALIZE_SCALAR(stack_base);
432 UNSERIALIZE_SCALAR(stack_size);
433 UNSERIALIZE_SCALAR(stack_min);
434 UNSERIALIZE_SCALAR(next_thread_stack_base);
415 SERIALIZE_SCALAR(mmap_end);
416 SERIALIZE_SCALAR(nxm_start);
417 SERIALIZE_SCALAR(nxm_end);
418 pTable->serialize(cp);
419 for (int x = 0; x < fd_array->size(); x++) {
420 (*fd_array)[x].serializeSection(cp, csprintf("FDEntry%d", x));
421 }
422 SERIALIZE_SCALAR(M5_pid);
423
424}
425
426void
427Process::unserialize(CheckpointIn &cp)
428{
429 UNSERIALIZE_SCALAR(brk_point);
430 UNSERIALIZE_SCALAR(stack_base);
431 UNSERIALIZE_SCALAR(stack_size);
432 UNSERIALIZE_SCALAR(stack_min);
433 UNSERIALIZE_SCALAR(next_thread_stack_base);
435 UNSERIALIZE_SCALAR(mmap_start);
436 UNSERIALIZE_SCALAR(mmap_end);
437 UNSERIALIZE_SCALAR(nxm_start);
438 UNSERIALIZE_SCALAR(nxm_end);
439 pTable->unserialize(cp);
440 for (int x = 0; x < fd_array->size(); x++) {
441 FDEntry *fde = getFDEntry(x);
442 fde->unserializeSection(cp, csprintf("FDEntry%d", x));
443 }

--- 238 unchanged lines hidden ---
434 UNSERIALIZE_SCALAR(mmap_end);
435 UNSERIALIZE_SCALAR(nxm_start);
436 UNSERIALIZE_SCALAR(nxm_end);
437 pTable->unserialize(cp);
438 for (int x = 0; x < fd_array->size(); x++) {
439 FDEntry *fde = getFDEntry(x);
440 fde->unserializeSection(cp, csprintf("FDEntry%d", x));
441 }

--- 238 unchanged lines hidden ---