static should not be used for constants that are not inside a class definition.
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,
(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);