/*
- * Copyright (c) 2013, 2015, 2017 ARM Limited
+ * Copyright (c) 2013, 2015, 2017-2018 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
}
+void
+GenericTimerISA::setMiscReg(int reg, MiscReg val)
+{
+ DPRINTF(Timer, "Setting %s := 0x%x\n", miscRegName[reg], val);
+ parent.setMiscReg(reg, cpu, val);
+}
+
+MiscReg
+GenericTimerISA::readMiscReg(int reg)
+{
+ MiscReg value = parent.readMiscReg(reg, cpu);
+ DPRINTF(Timer, "Reading %s as 0x%x\n", miscRegName[reg], value);
+ return value;
+}
GenericTimerMem::GenericTimerMem(GenericTimerMemParams *p)
: PioDevice(p),
/*
- * Copyright (c) 2013, 2015, 2017 ARM Limited
+ * Copyright (c) 2013, 2015, 2017-2018 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
GenericTimerISA(GenericTimer &_parent, unsigned _cpu)
: parent(_parent), cpu(_cpu) {}
- void setMiscReg(int misc_reg, ArmISA::MiscReg val) override {
- parent.setMiscReg(misc_reg, cpu, val);
- }
- ArmISA::MiscReg readMiscReg(int misc_reg) override {
- return parent.readMiscReg(misc_reg, cpu);
- }
+ void setMiscReg(int misc_reg, ArmISA::MiscReg val) override;
+ ArmISA::MiscReg readMiscReg(int misc_reg) override;
protected:
GenericTimer &parent;