summaryrefslogtreecommitdiff
path: root/cpu/beta_cpu/rename_map.hh
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/beta_cpu/rename_map.hh')
-rw-r--r--cpu/beta_cpu/rename_map.hh15
1 files changed, 9 insertions, 6 deletions
diff --git a/cpu/beta_cpu/rename_map.hh b/cpu/beta_cpu/rename_map.hh
index 05b52bfb2..e68fa05a8 100644
--- a/cpu/beta_cpu/rename_map.hh
+++ b/cpu/beta_cpu/rename_map.hh
@@ -1,6 +1,5 @@
// Todo: Create destructor.
-// Make it so that there's a proper separation between int and fp. Also
-// have it so that there's a more meaningful name given to the variable
+// Have it so that there's a more meaningful name given to the variable
// that marks the beginning of the FP registers.
#ifndef __RENAME_MAP_HH__
@@ -10,7 +9,6 @@
#include <vector>
#include <utility>
-//Will want to include faults
#include "cpu/beta_cpu/free_list.hh"
using namespace std;
@@ -18,8 +16,6 @@ using namespace std;
class SimpleRenameMap
{
public:
-// typedef typename Impl::RegIndex RegIndex;
-
/**
* Pair of a logical register and a physical register. Tells the
* previous mapping of a logical register to a physical register.
@@ -45,6 +41,9 @@ class SimpleRenameMap
RegIndex _intZeroReg,
RegIndex _floatZeroReg);
+ /** Destructor. */
+ ~SimpleRenameMap();
+
void setFreeList(SimpleFreeList *fl_ptr);
//Tell rename map to get a free physical register for a given
@@ -110,7 +109,9 @@ class SimpleRenameMap
PhysRegIndex physical_reg;
bool valid;
- RenameEntry();
+ RenameEntry()
+ : physical_reg(0), valid(false)
+ { }
};
/** Integer rename map. */
@@ -122,6 +123,8 @@ class SimpleRenameMap
/** Free list interface. */
SimpleFreeList *freeList;
+ // Might want to make all these scoreboards into one large scoreboard.
+
/** Scoreboard of physical integer registers, saying whether or not they
* are ready.
*/