[xen-unstable] x86_emulate: Fix use-before-initialise warning.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] x86_emulate: Fix use-before-initialise warning.

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1196167508 0
# Node ID 3b71ee29c2826eeb5945e5f1745b61987ae9487c
# Parent  26e766e0c62809e63b9c0082a99e14b41d729a18
x86_emulate: Fix use-before-initialise warning.
Signed-off-by: Keir Fraser <[hidden email]>
---
 xen/arch/x86/x86_emulate.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 26e766e0c628 -r 3b71ee29c282 xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c Mon Nov 26 22:28:48 2007 +0000
+++ b/xen/arch/x86/x86_emulate.c Tue Nov 27 12:45:08 2007 +0000
@@ -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;

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog