base.cc (2901:f9a45473ab55) | base.cc (2915:1f4d02556ac1) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 41 unchanged lines hidden (view full) --- 50#include "mem/packet_impl.hh" 51#include "sim/builder.hh" 52#include "sim/byteswap.hh" 53#include "sim/debug.hh" 54#include "sim/host.hh" 55#include "sim/sim_events.hh" 56#include "sim/sim_object.hh" 57#include "sim/stats.hh" | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 41 unchanged lines hidden (view full) --- 50#include "mem/packet_impl.hh" 51#include "sim/builder.hh" 52#include "sim/byteswap.hh" 53#include "sim/debug.hh" 54#include "sim/host.hh" 55#include "sim/sim_events.hh" 56#include "sim/sim_object.hh" 57#include "sim/stats.hh" |
58#include "sim/system.hh" | |
59 60#if FULL_SYSTEM 61#include "base/remote_gdb.hh" | 58 59#if FULL_SYSTEM 60#include "base/remote_gdb.hh" |
61#include "sim/system.hh" |
|
62#include "arch/tlb.hh" 63#include "arch/stacktrace.hh" 64#include "arch/vtophys.hh" 65#else // !FULL_SYSTEM 66#include "mem/mem_object.hh" 67#endif // FULL_SYSTEM 68 69using namespace std; --- 103 unchanged lines hidden (view full) --- 173 startNumInst = numInst; 174 // notIdleFraction = (_status != Idle); 175} 176 177void 178BaseSimpleCPU::serialize(ostream &os) 179{ 180 BaseCPU::serialize(os); | 62#include "arch/tlb.hh" 63#include "arch/stacktrace.hh" 64#include "arch/vtophys.hh" 65#else // !FULL_SYSTEM 66#include "mem/mem_object.hh" 67#endif // FULL_SYSTEM 68 69using namespace std; --- 103 unchanged lines hidden (view full) --- 173 startNumInst = numInst; 174 // notIdleFraction = (_status != Idle); 175} 176 177void 178BaseSimpleCPU::serialize(ostream &os) 179{ 180 BaseCPU::serialize(os); |
181 SERIALIZE_SCALAR(inst); 182 nameOut(os, csprintf("%s.xc", name())); | 181// SERIALIZE_SCALAR(inst); 182 nameOut(os, csprintf("%s.xc.0", name())); |
183 thread->serialize(os); 184} 185 186void 187BaseSimpleCPU::unserialize(Checkpoint *cp, const string §ion) 188{ 189 BaseCPU::unserialize(cp, section); | 183 thread->serialize(os); 184} 185 186void 187BaseSimpleCPU::unserialize(Checkpoint *cp, const string §ion) 188{ 189 BaseCPU::unserialize(cp, section); |
190 UNSERIALIZE_SCALAR(inst); 191 thread->unserialize(cp, csprintf("%s.xc", section)); | 190// UNSERIALIZE_SCALAR(inst); 191 thread->unserialize(cp, csprintf("%s.xc.0", section)); |
192} 193 194void 195change_thread_state(int thread_number, int activate, int priority) 196{ 197} 198 199Fault --- 271 unchanged lines hidden --- | 192} 193 194void 195change_thread_state(int thread_number, int activate, int priority) 196{ 197} 198 199Fault --- 271 unchanged lines hidden --- |