x86emul: consolidate segment register handling
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 13:37:34 +0000 (15:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 13:37:34 +0000 (15:37 +0200)
commitca3f281fcbacf0ad6df27176641e61a50f9c86c8
treee9fc5d28f65de3fc9d9567145b7836f4a02908c3
parent8c14e5f97ff4dff2a28e1041298e040d21598d42
x86emul: consolidate segment register handling

Use a single set of variables throughout the huge switch() statement,
allowing to funnel SLDT/STR into the mov-from-sreg code path.

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