root.cc (8801:1a84c6a81299) root.cc (8901:bba76d164f9e)
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

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

120
121void
122Root::loadState(Checkpoint *cp)
123{
124 timeSyncEnable(params()->time_sync_enable);
125}
126
127bool FullSystem;
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

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

120
121void
122Root::loadState(Checkpoint *cp)
123{
124 timeSyncEnable(params()->time_sync_enable);
125}
126
127bool FullSystem;
128unsigned int FullSystemInt;
128
129Root *
130RootParams::create()
131{
132 static bool created = false;
133 if (created)
134 panic("only one root object allowed!");
135
136 created = true;
137
138 FullSystem = full_system;
129
130Root *
131RootParams::create()
132{
133 static bool created = false;
134 if (created)
135 panic("only one root object allowed!");
136
137 created = true;
138
139 FullSystem = full_system;
140 FullSystemInt = full_system ? 1 : 0;
139
140 return new Root(this);
141}
141
142 return new Root(this);
143}