summaryrefslogtreecommitdiff
path: root/cpu/ozone/rename_table_impl.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-04-22 18:45:01 -0400
committerKevin Lim <ktlim@umich.edu>2006-04-22 18:45:01 -0400
commit759ff4b91024835d3bf436b993b0f39e276c36fe (patch)
tree8811d20f2cf2638f8e8fd32afc08492f4b644ff6 /cpu/ozone/rename_table_impl.hh
parenta8b03e4d017b66d7b5502a101ea5b7115827a107 (diff)
downloadgem5-759ff4b91024835d3bf436b993b0f39e276c36fe.tar.xz
Updates for OzoneCPU.
build/SConstruct: Include Ozone CPU models. cpu/cpu_models.py: Include OzoneCPU models. --HG-- extra : convert_revision : 51a016c216cacd2cc613eed79653026c2edda4b3
Diffstat (limited to 'cpu/ozone/rename_table_impl.hh')
-rw-r--r--cpu/ozone/rename_table_impl.hh23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpu/ozone/rename_table_impl.hh b/cpu/ozone/rename_table_impl.hh
new file mode 100644
index 000000000..86fc1cc55
--- /dev/null
+++ b/cpu/ozone/rename_table_impl.hh
@@ -0,0 +1,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];
+ }
+}