Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Types.h
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Types.h
r81 r88 23 23 class stat_list_entry_t 24 24 { 25 p rivate: bool _is_free ; // set = is present in free list26 p rivate: bool _is_link ; // set = is present in rat27 p rivate: bool _is_valid; // set = an instruction have write in this register28 p rivate: uint32_t _counter ; // number of register that must read this register25 public : bool _is_free ; // set = is present in free list 26 public : bool _is_link ; // set = is present in rat 27 public : bool _is_valid; // set = an instruction have write in this register 28 public : uint32_t _counter ; // number of register that must read this register 29 29 30 30 public : stat_list_entry_t (void) {}; … … 55 55 } 56 56 57 public : void retire_write_old ( void)57 public : void retire_write_old (bool restore_old) 58 58 { 59 _is_link = 0; 59 if (not restore_old) 60 { 61 _is_link = 0; 62 } 63 // else nothing 60 64 } 61 65 62 public : void retire_write_new ( void)66 public : void retire_write_new (bool restore_old) 63 67 { 68 if (restore_old) 69 { 70 _is_link = 0; 71 } 72 73 // in all case 64 74 _is_valid = 1; 65 75 } … … 79 89 return ((_is_free == 0) and 80 90 (_is_link == 0) and 81 (_is_valid == 1) and 91 // (_is_valid == 1) and // if is_link <- 0, then retire_write_old or reset 82 92 (_counter == 0)); 83 93 } 84 94 85 public : friend std::ostream& operator<< (std::ostream& output _stream,95 public : friend std::ostream& operator<< (std::ostream& output, 86 96 stat_list_entry_t & x) 87 97 { 88 output _stream<< x._is_free << " "89 90 91 98 output << x._is_free << " " 99 << x._is_link << " " 100 << x._is_valid << " " 101 << x._counter; 92 102 93 return output _stream;103 return output; 94 104 } 95 105
Note: See TracChangeset
for help on using the changeset viewer.