generic_timer.cc (12733:fd6b0c5419aa) | generic_timer.cc (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 --- 505 unchanged lines hidden (view full) --- 516 517 default: 518 warn("Reading from unknown register: %s\n", miscRegName[reg]); 519 return 0; 520 } 521} 522 523 | 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 --- 505 unchanged lines hidden (view full) --- 516 517 default: 518 warn("Reading from unknown register: %s\n", miscRegName[reg]); 519 return 0; 520 } 521} 522 523 |
524void 525GenericTimerISA::setMiscReg(int reg, MiscReg val) 526{ 527 DPRINTF(Timer, "Setting %s := 0x%x\n", miscRegName[reg], val); 528 parent.setMiscReg(reg, cpu, val); 529} |
|
524 | 530 |
531MiscReg 532GenericTimerISA::readMiscReg(int reg) 533{ 534 MiscReg value = parent.readMiscReg(reg, cpu); 535 DPRINTF(Timer, "Reading %s as 0x%x\n", miscRegName[reg], value); 536 return value; 537} 538 |
|
525GenericTimerMem::GenericTimerMem(GenericTimerMemParams *p) 526 : PioDevice(p), 527 ctrlRange(RangeSize(p->base, TheISA::PageBytes)), 528 timerRange(RangeSize(p->base + TheISA::PageBytes, TheISA::PageBytes)), 529 addrRanges{ctrlRange, timerRange}, 530 systemCounter(), 531 physTimer(csprintf("%s.phys_timer0", name()), 532 *this, systemCounter, --- 331 unchanged lines hidden --- | 539GenericTimerMem::GenericTimerMem(GenericTimerMemParams *p) 540 : PioDevice(p), 541 ctrlRange(RangeSize(p->base, TheISA::PageBytes)), 542 timerRange(RangeSize(p->base + TheISA::PageBytes, TheISA::PageBytes)), 543 addrRanges{ctrlRange, timerRange}, 544 systemCounter(), 545 physTimer(csprintf("%s.phys_timer0", name()), 546 *this, systemCounter, --- 331 unchanged lines hidden --- |