Deleted Added
sdiff udiff text old ( 11972:9503a0d8c352 ) new ( 13021:f57df5a2660e )
full compact
1/*
2 * Copyright (c) 2016-2017 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

--- 113 unchanged lines hidden (view full) ---

122{
123 using namespace Stats;
124
125 // Automatic variables:
126 if (name == "temp") {
127 return _temp;
128 } else if (name == "voltage") {
129 return clocked_object->voltage();
130 }
131
132 // Try to cast the stat, only these are supported right now
133 const auto it = stats_map.find(name);
134 if (it == stats_map.cend()) {
135 warn("Failed to find stat '%s'\n", name);
136 failed = true;
137 return 0;
138 }

--- 24 unchanged lines hidden ---