system.hh (10713:eddb533708cb) system.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2012, 2014 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

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

512
513 /// Allocate npages contiguous unused physical pages
514 /// @return Starting address of first page
515 Addr allocPhysPages(int npages);
516
517 int registerThreadContext(ThreadContext *tc, int assigned=-1);
518 void replaceThreadContext(ThreadContext *tc, int context_id);
519
1/*
2 * Copyright (c) 2012, 2014 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

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

512
513 /// Allocate npages contiguous unused physical pages
514 /// @return Starting address of first page
515 Addr allocPhysPages(int npages);
516
517 int registerThreadContext(ThreadContext *tc, int assigned=-1);
518 void replaceThreadContext(ThreadContext *tc, int context_id);
519
520 void serialize(std::ostream &os);
521 void unserialize(Checkpoint *cp, const std::string &section);
520 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
521 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
522
523 unsigned int drain(DrainManager *dm);
524 void drainResume();
525
526 public:
527 Counter totalNumInsts;
528 EventQueue instEventQueue;
529 std::map<std::pair<uint32_t,uint32_t>, Tick> lastWorkItemStarted;

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

547
548 /**
549 * If needed, serialize additional symbol table entries for a
550 * specific subclass of this sytem. Currently this is used by
551 * Alpha and MIPS.
552 *
553 * @param os stream to serialize to
554 */
522
523 unsigned int drain(DrainManager *dm);
524 void drainResume();
525
526 public:
527 Counter totalNumInsts;
528 EventQueue instEventQueue;
529 std::map<std::pair<uint32_t,uint32_t>, Tick> lastWorkItemStarted;

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

547
548 /**
549 * If needed, serialize additional symbol table entries for a
550 * specific subclass of this sytem. Currently this is used by
551 * Alpha and MIPS.
552 *
553 * @param os stream to serialize to
554 */
555 virtual void serializeSymtab(std::ostream &os) {}
555 virtual void serializeSymtab(CheckpointOut &os) const {}
556
557 /**
558 * If needed, unserialize additional symbol table entries for a
559 * specific subclass of this system.
560 *
561 * @param cp checkpoint to unserialize from
562 * @param section relevant section in the checkpoint
563 */
556
557 /**
558 * If needed, unserialize additional symbol table entries for a
559 * specific subclass of this system.
560 *
561 * @param cp checkpoint to unserialize from
562 * @param section relevant section in the checkpoint
563 */
564 virtual void unserializeSymtab(Checkpoint *cp,
565 const std::string &section) {}
564 virtual void unserializeSymtab(CheckpointIn &cp) {}
566
567};
568
569void printSystems();
570
571#endif // __SYSTEM_HH__
565
566};
567
568void printSystems();
569
570#endif // __SYSTEM_HH__