[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] x86: emulate lea with two register operands correctly
# HG changeset patch # User David Vrabel <david.vrabel@xxxxxxxxxx> # Date 1326800103 0 # Node ID 75007e524cd8e8065a179b6cc7e652d0a4cf1eec # Parent 3f7117070ba1ed15e2a660dcc79e1a2bfe8e82fb x86: emulate lea with two register operands correctly An lea instruction with two register operands should raise an undefined instruction exception. Skype does such a instruction and will crash when starting if it does not get the exception. Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> xen-unstable changeset: 24456:03781de56c31 xen-unstable date: Thu Jan 05 15:47:16 2012 +0000 --- diff -r 3f7117070ba1 -r 75007e524cd8 xen/arch/x86/x86_emulate/x86_emulate.c --- a/xen/arch/x86/x86_emulate/x86_emulate.c Tue Jan 17 11:34:43 2012 +0000 +++ b/xen/arch/x86/x86_emulate/x86_emulate.c Tue Jan 17 11:35:03 2012 +0000 @@ -2056,6 +2056,7 @@ } case 0x8d: /* lea */ + generate_exception_if(ea.type != OP_MEM, EXC_UD, -1); dst.val = ea.mem.off; break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |