mathexpr_powermodel.cc (11972:9503a0d8c352) mathexpr_powermodel.cc (13021:f57df5a2660e)
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();
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 }
130 } else if (name=="clock_period") {
131 return clocked_object->clockPeriod();
132 }
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 ---
133
134 // Try to cast the stat, only these are supported right now
135 const auto it = stats_map.find(name);
136 if (it == stats_map.cend()) {
137 warn("Failed to find stat '%s'\n", name);
138 failed = true;
139 return 0;
140 }

--- 24 unchanged lines hidden ---