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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 101 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 public: 121 122 /** 123 * Purely virtual method that returns a reference to the data 124 * port. All subclasses must implement this method. 125 * 126 * @return a reference to the data port 127 */ |
128 virtual MasterPort &getDataPort() = 0; |
129 130 /** 131 * Purely virtual method that returns a reference to the instruction 132 * port. All subclasses must implement this method. 133 * 134 * @return a reference to the instruction port 135 */ |
136 virtual MasterPort &getInstPort() = 0; |
137 138 /** Reads this CPU's ID. */ 139 int cpuId() { return _cpuId; } 140 141 /** Reads this CPU's unique data requestor ID */ 142 MasterID dataMasterId() { return _dataMasterId; } 143 /** Reads this CPU's unique instruction requestor ID */ 144 MasterID instMasterId() { return _instMasterId; } --- 304 unchanged lines hidden --- |