From: Nathan Binkert Date: Sat, 7 Feb 2009 04:55:50 +0000 (-0800) Subject: Quell g++ 4.3 warning about operator ambiguity X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1798d063e6d794bd44ba329e1b3ba5ac1dca9a5;p=gem5.git Quell g++ 4.3 warning about operator ambiguity --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 202bfc7f5..567335b7f 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -1074,7 +1074,7 @@ let {{ // Fall through on purpose case SegIntGateCheck: // Make sure the gate's the right type. - if (m5reg.mode == LongMode && ((desc.type & 0xe) != 0xe) || + if ((m5reg.mode == LongMode && (desc.type & 0xe) != 0xe) || ((desc.type & 0x6) != 0x6)) { fault = new GeneralProtection(0); }