x86_emulate: set the operand size for SMSW/reg writeback.
PATCH 1/1 x86_emulate: set the operand size for SMSW/reg writeback.
x86_emulate: set the operand size for SMSW/reg writeback. Otherwise it defaults to 0 bytes.
Signed-off-by Tim Deegan <[email protected]>
xen/arch/x86/x86_emulate/x86_emulate.c +2 -0
@@ -3557,6 +3557,8 @@ x86_emulate(case 4 :/* smsw */ if ( ea.type ==OP_MEM ) ea.bytes =2 ; +else + ea.bytes = op_bytes; dst = ea;fail_if (ops->read_cr ==NULL );if ( (rc = ops->read_cr (0 , &dst.val, ctxt)) )