1/*
2 * Copyright (c) 2011-2014, 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
--- 516 unchanged lines hidden (view full) ---
527 debugCounter("detaching event not currently attached"
528 " to any event\n");
529 }
530}
531
532void
533PMU::CounterState::attach(PMUEvent* event)
534{
535 value = 0;
536 sourceEvent = event;
537 sourceEvent->attachEvent(this);
538}
539
540uint64_t
541PMU::CounterState::getValue() const
542{
543 if (sourceEvent) {
--- 271 unchanged lines hidden ---
2 * Copyright (c) 2011-2014, 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
--- 516 unchanged lines hidden (view full) ---
527 debugCounter("detaching event not currently attached"
528 " to any event\n");
529 }
530}
531
532void
533PMU::CounterState::attach(PMUEvent* event)
534{
535 value = 0;
536 sourceEvent = event;
537 sourceEvent->attachEvent(this);
538}
539
540uint64_t
541PMU::CounterState::getValue() const
542{
543 if (sourceEvent) {
--- 271 unchanged lines hidden ---