base.hh (11168:f98eb2da15a4) base.hh (11169:44b5c183c3cd)
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

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

184 * getInstPort of the subclasses to resolve the two ports.
185 *
186 * @param if_name the port name
187 * @param idx ignored index
188 *
189 * @return a reference to the port with the given name
190 */
191 BaseMasterPort &getMasterPort(const std::string &if_name,
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

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

184 * getInstPort of the subclasses to resolve the two ports.
185 *
186 * @param if_name the port name
187 * @param idx ignored index
188 *
189 * @return a reference to the port with the given name
190 */
191 BaseMasterPort &getMasterPort(const std::string &if_name,
192 PortID idx = InvalidPortID);
192 PortID idx = InvalidPortID) override;
193
194 /** Get cpu task id */
195 uint32_t taskId() const { return _taskId; }
196 /** Set cpu task id */
197 void taskId(uint32_t id) { _taskId = id; }
198
199 uint32_t getPid() const { return _pid; }
200 void setPid(uint32_t pid) { _pid = pid; }

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

298
299 public:
300 typedef BaseCPUParams Params;
301 const Params *params() const
302 { return reinterpret_cast<const Params *>(_params); }
303 BaseCPU(Params *params, bool is_checker = false);
304 virtual ~BaseCPU();
305
193
194 /** Get cpu task id */
195 uint32_t taskId() const { return _taskId; }
196 /** Set cpu task id */
197 void taskId(uint32_t id) { _taskId = id; }
198
199 uint32_t getPid() const { return _pid; }
200 void setPid(uint32_t pid) { _pid = pid; }

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

298
299 public:
300 typedef BaseCPUParams Params;
301 const Params *params() const
302 { return reinterpret_cast<const Params *>(_params); }
303 BaseCPU(Params *params, bool is_checker = false);
304 virtual ~BaseCPU();
305
306 virtual void init();
307 virtual void startup();
308 virtual void regStats();
306 void init() override;
307 void startup() override;
308 void regStats() override;
309
310 void regProbePoints() override;
311
312 void registerThreadContexts();
313
314 /**
315 * Prepare for another CPU to take over execution.
316 *

--- 265 unchanged lines hidden ---
309
310 void regProbePoints() override;
311
312 void registerThreadContexts();
313
314 /**
315 * Prepare for another CPU to take over execution.
316 *

--- 265 unchanged lines hidden ---