process.cc (6712:b95abe00dd9d) process.cc (6820:2980bd04e6df)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

502 SERIALIZE_SCALAR(nxm_start);
503 SERIALIZE_SCALAR(nxm_end);
504 find_file_offsets();
505 pTable->serialize(os);
506 for (int x = 0; x <= MAX_FD; x++) {
507 nameOut(os, csprintf("%s.FdMap%d", name(), x));
508 fd_map[x].serialize(os);
509 }
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

502 SERIALIZE_SCALAR(nxm_start);
503 SERIALIZE_SCALAR(nxm_end);
504 find_file_offsets();
505 pTable->serialize(os);
506 for (int x = 0; x <= MAX_FD; x++) {
507 nameOut(os, csprintf("%s.FdMap%d", name(), x));
508 fd_map[x].serialize(os);
509 }
510 SERIALIZE_SCALAR(M5_pid);
510
511}
512
513void
514Process::unserialize(Checkpoint *cp, const std::string &section)
515{
516 UNSERIALIZE_SCALAR(initialContextLoaded);
517 UNSERIALIZE_SCALAR(brk_point);

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

523 UNSERIALIZE_SCALAR(mmap_end);
524 UNSERIALIZE_SCALAR(nxm_start);
525 UNSERIALIZE_SCALAR(nxm_end);
526 pTable->unserialize(cp, section);
527 for (int x = 0; x <= MAX_FD; x++) {
528 fd_map[x].unserialize(cp, csprintf("%s.FdMap%d", section, x));
529 }
530 fix_file_offsets();
511
512}
513
514void
515Process::unserialize(Checkpoint *cp, const std::string &section)
516{
517 UNSERIALIZE_SCALAR(initialContextLoaded);
518 UNSERIALIZE_SCALAR(brk_point);

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

524 UNSERIALIZE_SCALAR(mmap_end);
525 UNSERIALIZE_SCALAR(nxm_start);
526 UNSERIALIZE_SCALAR(nxm_end);
527 pTable->unserialize(cp, section);
528 for (int x = 0; x <= MAX_FD; x++) {
529 fd_map[x].unserialize(cp, csprintf("%s.FdMap%d", section, x));
530 }
531 fix_file_offsets();
532 UNSERIALIZE_OPT_SCALAR(M5_pid);
533 // The above returns a bool so that you could do something if you don't
534 // find the param in the checkpoint if you wanted to, like set a default
535 // but in this case we'll just stick with the instantianted value if not
536 // found.
531
532 checkpointRestored = true;
533
534}
535
536
537////////////////////////////////////////////////////////////////////////
538//

--- 257 unchanged lines hidden ---
537
538 checkpointRestored = true;
539
540}
541
542
543////////////////////////////////////////////////////////////////////////
544//

--- 257 unchanged lines hidden ---