1/* 2 * Copyright (c) 2011-2013 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 --- 43 unchanged lines hidden (view full) --- 52#include "arch/isa_traits.hh" 53#include "arch/microcode_rom.hh" 54#include "base/statistics.hh" 55#include "config/the_isa.hh" 56#include "mem/mem_object.hh" 57#include "sim/eventq.hh" 58#include "sim/full_system.hh" 59#include "sim/insttracer.hh" |
60#include "sim/system.hh" |
61 62struct BaseCPUParams; 63class BranchPred; 64class CheckerCPU; 65class ThreadContext; |
66 67class CPUProgressEvent : public Event 68{ 69 protected: 70 Tick _interval; 71 Counter lastNumInst; 72 BaseCPU *cpu; 73 bool _repeatEvent; --- 38 unchanged lines hidden (view full) --- 112 113 /** The current OS process ID that is executing on this processor. This is 114 * used to generate a taskId */ 115 uint32_t _pid; 116 117 /** Is the CPU switched out or active? */ 118 bool _switchedOut; 119 |
120 /** Cache the cache line size that we get from the system */ 121 const unsigned int _cacheLineSize; 122 |
123 public: 124 125 /** 126 * Purely virtual method that returns a reference to the data 127 * port. All subclasses must implement this method. 128 * 129 * @return a reference to the data port 130 */ --- 210 unchanged lines hidden (view full) --- 341 * scheduling events based on number of loads committed by 342 *a particular thread. 343 */ 344 EventQueue **comLoadEventQueue; 345 346 System *system; 347 348 /** |
349 * Get the cache line size of the system. 350 */ 351 inline unsigned int cacheLineSize() const { return _cacheLineSize; } 352 353 /** |
354 * Serialize this object to the given output stream. 355 * 356 * @note CPU models should normally overload the serializeThread() 357 * method instead of the serialize() method as this provides a 358 * uniform data format for all CPU models and promotes better code 359 * reuse. 360 * 361 * @param os The stream to serialize to. --- 125 unchanged lines hidden --- |