Updates for OzoneCPU.
[gem5.git] / cpu / ozone / rename_table.hh
1 #ifndef __CPU_OZONE_RENAME_TABLE_HH__
2 #define __CPU_OZONE_RENAME_TABLE_HH__
3
4 #include "arch/isa_traits.hh"
5
6 /** Rename table that holds the rename of each architectural register to
7 * producing DynInst. Needs to support copying from one table to another.
8 */
9
10 template <class Impl>
11 class RenameTable {
12 public:
13 typedef typename Impl::DynInstPtr DynInstPtr;
14
15 RenameTable();
16
17 void copyFrom(const RenameTable<Impl> &table_to_copy);
18
19 DynInstPtr &operator [] (int index)
20 { return table[index]; }
21
22 DynInstPtr table[TheISA::TotalNumRegs];
23 };
24
25 #endif // __CPU_OZONE_RENAME_TABLE_HH__