From 890be773623adaa40af90933fcdb5abc717eb742 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 21 Aug 2009 09:10:25 -0700 Subject: [PATCH] X86: fix some simple compile issues static should not be used for constants that are not inside a class definition. --- src/arch/x86/insts/microldstop.hh | 4 ++-- src/arch/x86/isa/microops/mediaop.isa | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/arch/x86/insts/microldstop.hh b/src/arch/x86/insts/microldstop.hh index 309a2e6b7..048535a27 100644 --- a/src/arch/x86/insts/microldstop.hh +++ b/src/arch/x86/insts/microldstop.hh @@ -64,8 +64,8 @@ namespace X86ISA { - static const Request::FlagsType SegmentFlagMask = mask(4); - static const int FlagShift = 4; + const Request::FlagsType SegmentFlagMask = mask(4); + const int FlagShift = 4; enum FlagBit { CPL0FlagBit = 1, AddrSizeFlagBit = 2, diff --git a/src/arch/x86/isa/microops/mediaop.isa b/src/arch/x86/isa/microops/mediaop.isa index 7ebe2ec10..9c53fa0fb 100644 --- a/src/arch/x86/isa/microops/mediaop.isa +++ b/src/arch/x86/isa/microops/mediaop.isa @@ -1406,8 +1406,8 @@ let {{ (0 - (arg2Bits & (1 << (sizeBits - 1)))); uint64_t resBits = 0; - if ((ext & 0x2) == 0 && arg1 == arg2 || - (ext & 0x2) == 0x2 && arg1 > arg2) + if (((ext & 0x2) == 0 && arg1 == arg2) || + ((ext & 0x2) == 0x2 && arg1 > arg2)) resBits = mask(sizeBits); result = insertBits(result, hiIndex, loIndex, resBits); -- 2.30.2