ia64/xen-unstable

changeset 16485:3b71ee29c282

x86_emulate: Fix use-before-initialise warning.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 27 12:45:08 2007 +0000 (2007-11-27)
parents 26e766e0c628
children 6fd17d0dcbcd
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Mon Nov 26 22:28:48 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Tue Nov 27 12:45:08 2007 +0000
     1.3 @@ -2706,8 +2706,8 @@ x86_emulate(
     1.4                  goto done;
     1.5              break;
     1.6          case 4: /* smsw */
     1.7 +            ea.bytes = 2;
     1.8              dst = ea;
     1.9 -            dst.bytes = 2;
    1.10              fail_if(ops->read_cr == NULL);
    1.11              if ( (rc = ops->read_cr(0, &dst.val, ctxt)) )
    1.12                  goto done;