Updates for OzoneCPU.
[gem5.git] / cpu / ozone / rename_table_impl.hh
1
2 #include <cstdlib> // Not really sure what to include to get NULL
3 #include "cpu/ozone/rename_table.hh"
4
5 template <class Impl>
6 RenameTable<Impl>::RenameTable()
7 {
8 // Actually should set these to dummy dyn insts that have the initial value
9 // and force their values to be initialized. This keeps everything the
10 // same.
11 for (int i = 0; i < TheISA::TotalNumRegs; ++i) {
12 table[i] = NULL;
13 }
14 }
15
16 template <class Impl>
17 void
18 RenameTable<Impl>::copyFrom(const RenameTable<Impl> &table_to_copy)
19 {
20 for (int i = 0; i < TheISA::TotalNumRegs; ++i) {
21 table[i] = table_to_copy.table[i];
22 }
23 }