summaryrefslogtreecommitdiff
path: root/src/arch/x86/insts/microregop.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/microregop.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/microregop.cc')
-rw-r--r--src/arch/x86/insts/microregop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/insts/microregop.cc b/src/arch/x86/insts/microregop.cc
index 2ea975746..2edd3ba87 100644
--- a/src/arch/x86/insts/microregop.cc
+++ b/src/arch/x86/insts/microregop.cc
@@ -67,7 +67,7 @@ namespace X86ISA
bool subtract) const
{
DPRINTF(X86, "flagMask = %#x\n", flagMask);
- if (_destRegIdx[0] & (1 << 6)) {
+ if (_destRegIdx[0] & IntFoldBit) {
_dest >>= 8;
}
uint64_t flags = oldFlags & ~flagMask;