cpu.hh (9444:ab47fe7f03f0) cpu.hh (9448:569d1e8f74e4)
1/*
2 * Copyright (c) 2011-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

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

441 void doContextSwitch();
442
443 /** Update The Order In Which We Process Threads. */
444 void updateThreadPriority();
445
446 /** Is the CPU draining? */
447 bool isDraining() const { return getDrainState() == Drainable::Draining; }
448
1/*
2 * Copyright (c) 2011-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

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

441 void doContextSwitch();
442
443 /** Update The Order In Which We Process Threads. */
444 void updateThreadPriority();
445
446 /** Is the CPU draining? */
447 bool isDraining() const { return getDrainState() == Drainable::Draining; }
448
449 /** Serialize state. */
450 virtual void serialize(std::ostream &os);
449 void serializeThread(std::ostream &os, ThreadID tid);
451
450
452 /** Unserialize from a checkpoint. */
453 virtual void unserialize(Checkpoint *cp, const std::string &section);
451 void unserializeThread(Checkpoint *cp, const std::string &section,
452 ThreadID tid);
454
455 public:
456 /** Executes a syscall.
457 * @todo: Determine if this needs to be virtual.
458 */
459 void syscall(int64_t callnum, ThreadID tid);
460
461 /** Starts draining the CPU's pipeline of all instructions in

--- 386 unchanged lines hidden ---
453
454 public:
455 /** Executes a syscall.
456 * @todo: Determine if this needs to be virtual.
457 */
458 void syscall(int64_t callnum, ThreadID tid);
459
460 /** Starts draining the CPU's pipeline of all instructions in

--- 386 unchanged lines hidden ---