|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-4.0-testing] x86_emulate: set the operand size for
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1295625784 0
# Node ID 9b453f96dd4658744bb530a6c6d59dbf25d11bd2
# Parent f47b924f74af83edc9a3020d38b7d5beb95c9dcc
x86_emulate: set the operand size for SMSW/reg writeback.
Otherwise it defaults to 0 bytes.
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset: 22782:fe8a177ae9cb
xen-unstable date: Wed Jan 19 15:29:04 2011 +0000
---
xen/arch/x86/x86_emulate/x86_emulate.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -r f47b924f74af -r 9b453f96dd46 xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c Tue Jan 18 12:25:54 2011 +0000
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c Fri Jan 21 16:03:04 2011 +0000
@@ -3555,8 +3555,7 @@ x86_emulate(
goto done;
break;
case 4: /* smsw */
- if ( ea.type == OP_MEM )
- ea.bytes = 2;
+ ea.bytes = (ea.type == OP_MEM) ? 2 : op_bytes;
dst = ea;
fail_if(ops->read_cr == NULL);
if ( (rc = ops->read_cr(0, &dst.val, ctxt)) )
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-4.0-testing] x86_emulate: set the operand size for SMSW/reg writeback.,
Xen patchbot-4.0-testing <=
|
|
|
|
|