summaryrefslogtreecommitdiff
path: root/src/arch/alpha/regfile.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-31 16:02:28 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-10-31 16:02:28 -0500
commitece796ab8af23705f3f4d7bd12ee623f3961c99e (patch)
tree29f7e1786617c0eb5f57a59359c8cdb1d69743ba /src/arch/alpha/regfile.hh
parent3c19c5f0f239b8d31a3a8acd03eff9923f19b6ee (diff)
downloadgem5-ece796ab8af23705f3f4d7bd12ee623f3961c99e.tar.xz
Make the IPRs use regular miscreg indexes, and make a table or two to find the miscreg index of a specific IPR.
--HG-- extra : convert_revision : dd235261e7086d6667b1b2bdc4a81b2573e21d53
Diffstat (limited to 'src/arch/alpha/regfile.hh')
-rw-r--r--src/arch/alpha/regfile.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/alpha/regfile.hh b/src/arch/alpha/regfile.hh
index ea6fc67b2..31472ec0e 100644
--- a/src/arch/alpha/regfile.hh
+++ b/src/arch/alpha/regfile.hh
@@ -31,8 +31,9 @@
#ifndef __ARCH_ALPHA_REGFILE_HH__
#define __ARCH_ALPHA_REGFILE_HH__
-#include "arch/alpha/types.hh"
#include "arch/alpha/isa_traits.hh"
+#include "arch/alpha/ipr.hh"
+#include "arch/alpha/types.hh"
#include "sim/faults.hh"
#include <string>
@@ -112,6 +113,11 @@ namespace AlphaISA
int intr_flag;
public:
+ MiscRegFile()
+ {
+ initializeIprTable();
+ }
+
MiscReg readReg(int misc_reg);
MiscReg readRegWithEffect(int misc_reg, Fault &fault,