1/* |
2 * Copyright (c) 2010-2012 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 267 unchanged lines hidden (view full) --- 278void 279BaseSimpleCPU::resetStats() 280{ 281// startNumInst = numInst; 282 notIdleFraction = (_status != Idle); 283} 284 285void |
286BaseSimpleCPU::serializeThread(ostream &os, ThreadID tid) |
287{ |
288 assert(_status == Idle || _status == Running); 289 assert(tid == 0); 290 |
291 thread->serialize(os); 292} 293 294void |
295BaseSimpleCPU::unserializeThread(Checkpoint *cp, const string §ion, 296 ThreadID tid) |
297{ |
298 if (tid != 0) 299 fatal("Trying to load more than one thread into a SimpleCPU\n"); 300 thread->unserialize(cp, section); |
301} 302 303void 304change_thread_state(ThreadID tid, int activate, int priority) 305{ 306} 307 308Addr --- 243 unchanged lines hidden --- |