diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-07-08 23:02:21 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-07-08 23:02:21 -0700 |
commit | aa031e1c116bc8bf22c844b4a9f3d2b3c69f995a (patch) | |
tree | f0f394c9cccb79149048a7a9d45a1bca4f926c4f /src/arch/alpha/regfile.cc | |
parent | 5c37d10624e0f9a9568f1eb1527832c55addba59 (diff) | |
download | gem5-aa031e1c116bc8bf22c844b4a9f3d2b3c69f995a.tar.xz |
Alpha: Move reg_redir into its own files, and move some constants into regfile.hh.
Diffstat (limited to 'src/arch/alpha/regfile.cc')
-rw-r--r-- | src/arch/alpha/regfile.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/arch/alpha/regfile.cc b/src/arch/alpha/regfile.cc index 8b226a9cf..0ddb9da8f 100644 --- a/src/arch/alpha/regfile.cc +++ b/src/arch/alpha/regfile.cc @@ -30,6 +30,7 @@ * Kevin Lim */ +#include "arch/alpha/isa_traits.hh" #include "arch/alpha/regfile.hh" #include "arch/alpha/miscregfile.hh" #include "cpu/thread_context.hh" @@ -38,20 +39,6 @@ using namespace std; namespace AlphaISA { -#if FULL_SYSTEM -const int reg_redir[NumIntRegs] = { - /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, - /* 8 */ 32, 33, 34, 35, 36, 37, 38, 15, - /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, - /* 24 */ 24, 39, 26, 27, 28, 29, 30, 31 }; -#else -const int reg_redir[NumIntRegs] = { - /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, - /* 8 */ 8, 9, 10, 11, 12, 13, 14, 15, - /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, - /* 24 */ 24, 25, 26, 27, 28, 29, 30, 31 }; -#endif - void copyRegs(ThreadContext *src, ThreadContext *dest) { |