root.cc (7863:f84bfd45d607) root.cc (7942:c122a3e1b204)
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();
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 timeSyncEnable(p->time_sync_enable);
112}
113
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
114Root *
115RootParams::create()
116{
117 static bool created = false;
118 if (created)
119 panic("only one root object allowed!");
120
121 created = true;
122
123 return new Root(this);
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}