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; |
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; |
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 |
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 |
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 --- |