summaryrefslogtreecommitdiff
path: root/cpu/ozone/rename_table_impl.hh
blob: 86fc1cc55039edcf5590231484a29e3b883dfcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include <cstdlib>  // Not really sure what to include to get NULL
#include "cpu/ozone/rename_table.hh"

template <class Impl>
RenameTable<Impl>::RenameTable()
{
    // Actually should set these to dummy dyn insts that have the initial value
    // and force their values to be initialized.  This keeps everything the
    // same.
    for (int i = 0; i < TheISA::TotalNumRegs; ++i) {
        table[i] = NULL;
    }
}

template <class Impl>
void
RenameTable<Impl>::copyFrom(const RenameTable<Impl> &table_to_copy)
{
    for (int i = 0; i < TheISA::TotalNumRegs; ++i) {
        table[i] = table_to_copy.table[i];
    }
}