system.hh (11838:0b311345ac72) system.hh (11839:dd6df2e47c14)
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

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

67 * actually have the definition.
68 */
69#if THE_ISA != NULL_ISA
70#include "cpu/pc_event.hh"
71#endif
72
73class BaseRemoteGDB;
74class GDBListener;
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

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

67 * actually have the definition.
68 */
69#if THE_ISA != NULL_ISA
70#include "cpu/pc_event.hh"
71#endif
72
73class BaseRemoteGDB;
74class GDBListener;
75class KvmVM;
75class ObjectFile;
76class ThreadContext;
77
78class System : public MemObject
79{
80 private:
81
82 /**

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

244 /** Offset that should be used for binary/symbol loading.
245 * This further allows more flexibility than the loadAddrMask allows alone
246 * in loading kernels and similar. The loadAddrOffset is applied after the
247 * loadAddrMask.
248 */
249 Addr loadAddrOffset;
250
251 public:
76class ObjectFile;
77class ThreadContext;
78
79class System : public MemObject
80{
81 private:
82
83 /**

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

245 /** Offset that should be used for binary/symbol loading.
246 * This further allows more flexibility than the loadAddrMask allows alone
247 * in loading kernels and similar. The loadAddrOffset is applied after the
248 * loadAddrMask.
249 */
250 Addr loadAddrOffset;
251
252 public:
253 /**
254 * Get a pointer to the Kernel Virtual Machine (KVM) SimObject,
255 * if present.
256 */
257 KvmVM* getKvmVM() {
258 return kvmVM;
259 }
260
252 /** Get a pointer to access the physical memory of the system */
253 PhysicalMemory& getPhysMem() { return physmem; }
254
255 /** Amount of physical memory that is still free */
256 Addr freeMemSize() const;
257
258 /** Amount of physical memory that exists */
259 Addr memSize() const;

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

284
285 /**
286 * The thermal model used for this system (if any).
287 */
288 ThermalModel * getThermalModel() const { return thermalModel; }
289
290 protected:
291
261 /** Get a pointer to access the physical memory of the system */
262 PhysicalMemory& getPhysMem() { return physmem; }
263
264 /** Amount of physical memory that is still free */
265 Addr freeMemSize() const;
266
267 /** Amount of physical memory that exists */
268 Addr memSize() const;

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

293
294 /**
295 * The thermal model used for this system (if any).
296 */
297 ThermalModel * getThermalModel() const { return thermalModel; }
298
299 protected:
300
301 KvmVM *const kvmVM;
302
292 PhysicalMemory physmem;
293
294 Enums::MemoryMode memoryMode;
295
296 const unsigned int _cacheLineSize;
297
298 uint64_t workItemsBegin;
299 uint64_t workItemsEnd;

--- 268 unchanged lines hidden ---
303 PhysicalMemory physmem;
304
305 Enums::MemoryMode memoryMode;
306
307 const unsigned int _cacheLineSize;
308
309 uint64_t workItemsBegin;
310 uint64_t workItemsEnd;

--- 268 unchanged lines hidden ---