Skip to contentSkip to conversation

x86emul: fix #XM delivery typo

PATCH In review Jan Beulich 3 participants 3 messages Mar 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86emul: fix #XM delivery typo

This clearly wasn't meant the way it was originally written.

xen/arch/x86/x86_emulate/x86_emulate.c +1 -1
@@ -8662,7 +8662,7 @@ x86_emulate(
     {
         unsigned long cr4;
 
-        if ( !ops->read_cr || !ops->read_cr(4, &cr4, ctxt) == X86EMUL_OKAY )
+        if ( !ops->read_cr || ops->read_cr(4, &cr4, ctxt) != X86EMUL_OKAY )
             cr4 = X86_CR4_OSXMMEXCPT;
         generate_exception(cr4 & X86_CR4_OSXMMEXCPT ? EXC_XM : EXC_UD);
     }

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by
#2 lore raw
Quoted 6 lines · Roger Pau Monné
Quoted 4 lines · Jan Beulich

This clearly wasn't meant the way it was originally written.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel