summaryrefslogtreecommitdiff
path: root/src/arch/x86/insts/static_inst.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-17 18:49:22 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-17 18:49:22 -0700
commitd85cd08113e61817fdf1df978f2713ba8b094996 (patch)
tree6159f9514ac84a4ff0792b346422b03d16052dc0 /src/arch/x86/insts/static_inst.cc
parent7b6587fc9cbd5e7e7930abbc5c6e2683e527f629 (diff)
downloadgem5-d85cd08113e61817fdf1df978f2713ba8b094996.tar.xz
X86: Set up a named constant for the "fold bit" for int register indices.
Diffstat (limited to 'src/arch/x86/insts/static_inst.cc')
-rw-r--r--src/arch/x86/insts/static_inst.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/insts/static_inst.cc b/src/arch/x86/insts/static_inst.cc
index 0820a47d4..4f48c4c59 100644
--- a/src/arch/x86/insts/static_inst.cc
+++ b/src/arch/x86/insts/static_inst.cc
@@ -149,8 +149,8 @@ namespace X86ISA
if (reg < FP_Base_DepTag) {
const char * suffix = "";
- bool fold = reg & (1 << 6);
- reg &= ~(1 << 6);
+ bool fold = reg & IntFoldBit;
+ reg &= ~IntFoldBit;
if(fold)
suffix = "h";