base.hh (10713:eddb533708cb) | base.hh (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 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 --- 70 unchanged lines hidden (view full) --- 79 public: 80 BaseKvmCPU(BaseKvmCPUParams *params); 81 virtual ~BaseKvmCPU(); 82 83 void init(); 84 void startup(); 85 void regStats(); 86 | 1/* 2 * Copyright (c) 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 --- 70 unchanged lines hidden (view full) --- 79 public: 80 BaseKvmCPU(BaseKvmCPUParams *params); 81 virtual ~BaseKvmCPU(); 82 83 void init(); 84 void startup(); 85 void regStats(); 86 |
87 void serializeThread(std::ostream &os, ThreadID tid); 88 void unserializeThread(Checkpoint *cp, const std::string §ion, 89 ThreadID tid); | 87 void serializeThread(CheckpointOut &cp, 88 ThreadID tid) const M5_ATTR_OVERRIDE; 89 void unserializeThread(CheckpointIn &cp, 90 ThreadID tid) M5_ATTR_OVERRIDE; |
90 91 unsigned int drain(DrainManager *dm); 92 void drainResume(); 93 94 void switchOut(); 95 void takeOverFrom(BaseCPU *cpu); 96 97 void verifyMemoryMode() const; --- 8 unchanged lines hidden (view full) --- 106 void haltContext(ThreadID thread_num); 107 108 ThreadContext *getContext(int tn); 109 110 Counter totalInsts() const; 111 Counter totalOps() const; 112 113 /** Dump the internal state to the terminal. */ | 91 92 unsigned int drain(DrainManager *dm); 93 void drainResume(); 94 95 void switchOut(); 96 void takeOverFrom(BaseCPU *cpu); 97 98 void verifyMemoryMode() const; --- 8 unchanged lines hidden (view full) --- 107 void haltContext(ThreadID thread_num); 108 109 ThreadContext *getContext(int tn); 110 111 Counter totalInsts() const; 112 Counter totalOps() const; 113 114 /** Dump the internal state to the terminal. */ |
114 virtual void dump(); | 115 virtual void dump() const; |
115 116 /** 117 * Force an exit from KVM. 118 * 119 * Send a signal to the thread owning this vCPU to get it to exit 120 * from KVM. Ignored if the vCPU is not executing. 121 */ 122 void kick() const { pthread_kill(vcpuThread, KVM_KICK_SIGNAL); } --- 654 unchanged lines hidden --- | 116 117 /** 118 * Force an exit from KVM. 119 * 120 * Send a signal to the thread owning this vCPU to get it to exit 121 * from KVM. Ignored if the vCPU is not executing. 122 */ 123 void kick() const { pthread_kill(vcpuThread, KVM_KICK_SIGNAL); } --- 654 unchanged lines hidden --- |