gem5/cpu/ozone/rename_table.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

25 lines
602 B
C++

#ifndef __CPU_OZONE_RENAME_TABLE_HH__
#define __CPU_OZONE_RENAME_TABLE_HH__
#include "arch/isa_traits.hh"
/** Rename table that holds the rename of each architectural register to
* producing DynInst. Needs to support copying from one table to another.
*/
template <class Impl>
class RenameTable {
public:
typedef typename Impl::DynInstPtr DynInstPtr;
RenameTable();
void copyFrom(const RenameTable<Impl> &table_to_copy);
DynInstPtr &operator [] (int index)
{ return table[index]; }
DynInstPtr table[TheISA::TotalNumRegs];
};
#endif // __CPU_OZONE_RENAME_TABLE_HH__