x86/emul: Fix clang build following BMI1/BMI2/TBM instruction support
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jan 2017 15:34:54 +0000 (15:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jan 2017 15:56:49 +0000 (15:56 +0000)
commit926c1e32b2351197cc19bc39f9047b703509372c
treea1348740e3f430a97aee054913e0abd4dcb00550
parentf07618c290fe20bd04f8e6e648b5eb00328e2007
x86/emul: Fix clang build following BMI1/BMI2/TBM instruction support

Travis reports that Clang objects to integer truncation during assignments to
a bitfield:

  ./x86_emulate/x86_emulate.c:6150:19: error: implicit truncation from 'int'
  to bitfield changes value from -1 to 15 [-Werror,-Wbitfield-constant-conversion]
          pxop->reg = ~0; /* rAX */
                    ^ ~~

Use 0xf instead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_emulate/x86_emulate.c