Last change
on this file since 146 was
146,
checked in by rosiere, 13 years ago
|
1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
406 bytes
|
Line | |
---|
1 | // #ifdef STATISTICS |
---|
2 | #include "Behavioural/include/Stat_binary_tree.h" |
---|
3 | |
---|
4 | namespace morpheo { |
---|
5 | namespace behavioural { |
---|
6 | counter_t Stat_binary_tree::val_leaf (void) |
---|
7 | { |
---|
8 | if (_data_type == CONSTANT) |
---|
9 | { |
---|
10 | return _data.cst; |
---|
11 | } |
---|
12 | if (_data_type == VARIABLE) |
---|
13 | { |
---|
14 | return *(_data.var); |
---|
15 | } |
---|
16 | |
---|
17 | throw(ERRORMORPHEO("Stat_binary_tree::val_leaf",_("Invalid leaf."))); |
---|
18 | } |
---|
19 | }; |
---|
20 | }; |
---|
21 | // #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.