generic_timer.hh (12733:fd6b0c5419aa) | generic_timer.hh (12971:a7fbe4a6eed7) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2013, 2015, 2017 ARM Limited | 2 * Copyright (c) 2013, 2015, 2017-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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 302 unchanged lines hidden (view full) --- 313}; 314 315class GenericTimerISA : public ArmISA::BaseISADevice 316{ 317 public: 318 GenericTimerISA(GenericTimer &_parent, unsigned _cpu) 319 : parent(_parent), cpu(_cpu) {} 320 | 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 --- 302 unchanged lines hidden (view full) --- 313}; 314 315class GenericTimerISA : public ArmISA::BaseISADevice 316{ 317 public: 318 GenericTimerISA(GenericTimer &_parent, unsigned _cpu) 319 : parent(_parent), cpu(_cpu) {} 320 |
321 void setMiscReg(int misc_reg, ArmISA::MiscReg val) override { 322 parent.setMiscReg(misc_reg, cpu, val); 323 } 324 ArmISA::MiscReg readMiscReg(int misc_reg) override { 325 return parent.readMiscReg(misc_reg, cpu); 326 } | 321 void setMiscReg(int misc_reg, ArmISA::MiscReg val) override; 322 ArmISA::MiscReg readMiscReg(int misc_reg) override; |
327 328 protected: 329 GenericTimer &parent; 330 unsigned cpu; 331}; 332 333class GenericTimerMem : public PioDevice 334{ --- 56 unchanged lines hidden --- | 323 324 protected: 325 GenericTimer &parent; 326 unsigned cpu; 327}; 328 329class GenericTimerMem : public PioDevice 330{ --- 56 unchanged lines hidden --- |