root.cc (12088:ffd7952e9929) root.cc (12185:90a329add771)
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

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

114 assert(_root == NULL);
115 _root = this;
116 lastTime.setTimer();
117
118 simQuantum = p->sim_quantum;
119}
120
121void
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

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

114 assert(_root == NULL);
115 _root = this;
116 lastTime.setTimer();
117
118 simQuantum = p->sim_quantum;
119}
120
121void
122Root::initState()
122Root::startup()
123{
124 timeSyncEnable(params()->time_sync_enable);
125}
126
127void
123{
124 timeSyncEnable(params()->time_sync_enable);
125}
126
127void
128Root::loadState(CheckpointIn &cp)
129{
130 SimObject::loadState(cp);
131 timeSyncEnable(params()->time_sync_enable);
132}
133
134void
135Root::serialize(CheckpointOut &cp) const
136{
137 SERIALIZE_SCALAR(FullSystem);
138 std::string isa = THE_ISA_STR;
139 SERIALIZE_SCALAR(isa);
140}
141
128Root::serialize(CheckpointOut &cp) const
129{
130 SERIALIZE_SCALAR(FullSystem);
131 std::string isa = THE_ISA_STR;
132 SERIALIZE_SCALAR(isa);
133}
134
142void
143Root::unserialize(CheckpointIn &cp)
144{}
145
135
146
147bool FullSystem;
148unsigned int FullSystemInt;
149
150Root *
151RootParams::create()
152{
153 static bool created = false;
154 if (created)
155 panic("only one root object allowed!");
156
157 created = true;
158
159 FullSystem = full_system;
160 FullSystemInt = full_system ? 1 : 0;
161
162 return new Root(this);
163}
136bool FullSystem;
137unsigned int FullSystemInt;
138
139Root *
140RootParams::create()
141{
142 static bool created = false;
143 if (created)
144 panic("only one root object allowed!");
145
146 created = true;
147
148 FullSystem = full_system;
149 FullSystemInt = full_system ? 1 : 0;
150
151 return new Root(this);
152}