system.hh (13396:23277eaae855) system.hh (13531:e6f1bf55d038)
1/*
2 * Copyright (c) 2010, 2012-2013, 2015-2018 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

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

49
50#include "kern/linux/events.hh"
51#include "params/ArmSystem.hh"
52#include "params/GenericArmSystem.hh"
53#include "sim/sim_object.hh"
54#include "sim/system.hh"
55
56class GenericTimer;
1/*
2 * Copyright (c) 2010, 2012-2013, 2015-2018 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

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

49
50#include "kern/linux/events.hh"
51#include "params/ArmSystem.hh"
52#include "params/GenericArmSystem.hh"
53#include "sim/sim_object.hh"
54#include "sim/system.hh"
55
56class GenericTimer;
57class BaseGic;
57class ThreadContext;
58
59class ArmSystem : public System
60{
61 protected:
62 /**
63 * PC based event to skip the dprink() call and emulate its
64 * functionality

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

92 * True if this system implements the Crypto Extension
93 */
94 const bool _haveCrypto;
95
96 /**
97 * Pointer to the Generic Timer wrapper.
98 */
99 GenericTimer *_genericTimer;
58class ThreadContext;
59
60class ArmSystem : public System
61{
62 protected:
63 /**
64 * PC based event to skip the dprink() call and emulate its
65 * functionality

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

93 * True if this system implements the Crypto Extension
94 */
95 const bool _haveCrypto;
96
97 /**
98 * Pointer to the Generic Timer wrapper.
99 */
100 GenericTimer *_genericTimer;
101 BaseGic *_gic;
100
101 /**
102 * Reset address (ARMv8)
103 */
104 const Addr _resetAddr;
105
106 /**
107 * True if the register width of the highest implemented exception level is

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

187 bool haveCrypto() const { return _haveCrypto; }
188
189 /** Sets the pointer to the Generic Timer. */
190 void setGenericTimer(GenericTimer *generic_timer)
191 {
192 _genericTimer = generic_timer;
193 }
194
102
103 /**
104 * Reset address (ARMv8)
105 */
106 const Addr _resetAddr;
107
108 /**
109 * True if the register width of the highest implemented exception level is

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

189 bool haveCrypto() const { return _haveCrypto; }
190
191 /** Sets the pointer to the Generic Timer. */
192 void setGenericTimer(GenericTimer *generic_timer)
193 {
194 _genericTimer = generic_timer;
195 }
196
197 /** Sets the pointer to the GIC. */
198 void setGIC(BaseGic *gic)
199 {
200 _gic = gic;
201 }
202
195 /** Get a pointer to the system's generic timer model */
196 GenericTimer *getGenericTimer() const { return _genericTimer; }
197
203 /** Get a pointer to the system's generic timer model */
204 GenericTimer *getGenericTimer() const { return _genericTimer; }
205
206 /** Get a pointer to the system's GIC */
207 BaseGic *getGIC() const { return _gic; }
208
198 /** Returns true if the register width of the highest implemented exception
199 * level is 64 bits (ARMv8) */
200 bool highestELIs64() const { return _highestELIs64; }
201
202 /** Returns the highest implemented exception level */
203 ExceptionLevel highestEL() const
204 {
205 if (_haveSecurity)

--- 127 unchanged lines hidden ---
209 /** Returns true if the register width of the highest implemented exception
210 * level is 64 bits (ARMv8) */
211 bool highestELIs64() const { return _highestELIs64; }
212
213 /** Returns the highest implemented exception level */
214 ExceptionLevel highestEL() const
215 {
216 if (_haveSecurity)

--- 127 unchanged lines hidden ---