x86emul: simplify LEAVE handling
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 08:01:14 +0000 (10:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 08:01:14 +0000 (10:01 +0200)
commit002e3ffb2156a135abbfb57374802922e162c5ae
treecd9f61dfbf7c983c0694f3389afdc70d97b76eef
parent0a0b8eb194b2aa31553582d02d84ab8262212ad2
x86emul: simplify LEAVE handling

There's no 1-byte operand size case to take care of here, and there's
no point doing the first writeback using dst fields - we can read rBP
and write rSP directly.

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