aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_emulate.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-11-27 12:45:08 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-11-27 12:45:08 +0000
commit25bcada5ccc4ccd199ae3b30fd302d9ab485822d (patch)
tree2d11fd5abc331624311ce8da244003d790300ef3 /xen/arch/x86/x86_emulate.c
parent9693f556338dccdab46f276e113d667ac48a9a15 (diff)
downloadxen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.tar.gz
xen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.tar.bz2
xen-25bcada5ccc4ccd199ae3b30fd302d9ab485822d.zip
x86_emulate: Fix use-before-initialise warning.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/x86_emulate.c')
-rw-r--r--xen/arch/x86/x86_emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/x86_emulate.c b/xen/arch/x86/x86_emulate.c
index 763d73774f..76cbd67ae8 100644
--- a/xen/arch/x86/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate.c
@@ -2706,8 +2706,8 @@ x86_emulate(
goto done;
break;
case 4: /* smsw */
+ ea.bytes = 2;
dst = ea;
- dst.bytes = 2;
fail_if(ops->read_cr == NULL);
if ( (rc = ops->read_cr(0, &dst.val, ctxt)) )
goto done;