root.cc (9983:2cce74fe359e) | root.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 119void 120Root::initState() 121{ 122 timeSyncEnable(params()->time_sync_enable); 123} 124 125void | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118 119void 120Root::initState() 121{ 122 timeSyncEnable(params()->time_sync_enable); 123} 124 125void |
126Root::loadState(Checkpoint *cp) | 126Root::loadState(CheckpointIn &cp) |
127{ 128 SimObject::loadState(cp); 129 timeSyncEnable(params()->time_sync_enable); 130} 131 132void | 127{ 128 SimObject::loadState(cp); 129 timeSyncEnable(params()->time_sync_enable); 130} 131 132void |
133Root::serialize(std::ostream &os) | 133Root::serialize(CheckpointOut &cp) const |
134{ 135 uint64_t cpt_ver = gem5CheckpointVersion; 136 SERIALIZE_SCALAR(cpt_ver); 137 SERIALIZE_SCALAR(FullSystem); 138 std::string isa = THE_ISA_STR; 139 SERIALIZE_SCALAR(isa); 140} 141 142void | 134{ 135 uint64_t cpt_ver = gem5CheckpointVersion; 136 SERIALIZE_SCALAR(cpt_ver); 137 SERIALIZE_SCALAR(FullSystem); 138 std::string isa = THE_ISA_STR; 139 SERIALIZE_SCALAR(isa); 140} 141 142void |
143Root::unserialize(Checkpoint *cp, const std::string §ion) | 143Root::unserialize(CheckpointIn &cp) |
144{ 145 uint64_t cpt_ver = 0; 146 UNSERIALIZE_OPT_SCALAR(cpt_ver); 147 if (cpt_ver < gem5CheckpointVersion) { 148 warn("**********************************************************\n"); 149 warn("!!!! Checkpoint ver %#x is older than current ver %#x !!!!\n", 150 cpt_ver, gem5CheckpointVersion); 151 warn("You might experience some issues when restoring and should run " --- 32 unchanged lines hidden --- | 144{ 145 uint64_t cpt_ver = 0; 146 UNSERIALIZE_OPT_SCALAR(cpt_ver); 147 if (cpt_ver < gem5CheckpointVersion) { 148 warn("**********************************************************\n"); 149 warn("!!!! Checkpoint ver %#x is older than current ver %#x !!!!\n", 150 cpt_ver, gem5CheckpointVersion); 151 warn("You might experience some issues when restoring and should run " --- 32 unchanged lines hidden --- |