1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2011 Advanced Micro Devices 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 --- 94 unchanged lines hidden (view full) --- 103 _periodTick(p->time_sync_period), syncEvent(this) 104{ 105 _period.setTick(p->time_sync_period); 106 _spinThreshold.setTick(p->time_sync_spin_threshold); 107 108 assert(_root == NULL); 109 _root = this; 110 lastTime.setTimer(); |
111} 112 |
113void 114Root::initState() 115{ 116 timeSyncEnable(params()->time_sync_enable); 117} 118 119void 120Root::loadState(Checkpoint *cp) 121{ 122 timeSyncEnable(params()->time_sync_enable); 123} 124 |
125Root * 126RootParams::create() 127{ 128 static bool created = false; 129 if (created) 130 panic("only one root object allowed!"); 131 132 created = true; 133 134 return new Root(this); 135} |