diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-07-17 18:49:22 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-07-17 18:49:22 -0700 |
commit | d85cd08113e61817fdf1df978f2713ba8b094996 (patch) | |
tree | 6159f9514ac84a4ff0792b346422b03d16052dc0 /src/arch/x86/intregs.hh | |
parent | 7b6587fc9cbd5e7e7930abbc5c6e2683e527f629 (diff) | |
download | gem5-d85cd08113e61817fdf1df978f2713ba8b094996.tar.xz |
X86: Set up a named constant for the "fold bit" for int register indices.
Diffstat (limited to 'src/arch/x86/intregs.hh')
-rw-r--r-- | src/arch/x86/intregs.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/intregs.hh b/src/arch/x86/intregs.hh index 627d7062f..2c6d871ed 100644 --- a/src/arch/x86/intregs.hh +++ b/src/arch/x86/intregs.hh @@ -167,6 +167,9 @@ namespace X86ISA NUM_INTREGS }; + // This needs to be large enough to miss all the other bits of an index. + static const IntRegIndex IntFoldBit = (IntRegIndex)(1 << 6); + inline static IntRegIndex INTREG_MICRO(int index) { |