gem5/cpu/ozone/rename_table_impl.hh
Kevin Lim 759ff4b910 Updates for OzoneCPU.
build/SConstruct:
    Include Ozone CPU models.
cpu/cpu_models.py:
    Include OzoneCPU models.

--HG--
extra : convert_revision : 51a016c216cacd2cc613eed79653026c2edda4b3
2006-04-22 18:45:01 -04:00

24 lines
620 B
C++

#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];
}
}