ia64/xen-unstable

changeset 16453:2e7fcea74cb1

x86: Fix read/write control-register in x86_emulate().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Nov 24 16:16:57 2007 +0000 (2007-11-24)
parents b92239112869
children d5c396128897
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Sat Nov 24 13:40:23 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Sat Nov 24 16:16:57 2007 +0000
     1.3 @@ -2291,7 +2291,7 @@ x86_emulate(
     1.4                       ? ops->write_dr(modrm_reg, src.val, ctxt)
     1.5                       : X86EMUL_UNHANDLEABLE)
     1.6                    : (ops->write_cr
     1.7 -                     ? ops->write_dr(modrm_reg, src.val, ctxt)
     1.8 +                     ? ops->write_cr(modrm_reg, src.val, ctxt)
     1.9                       : X86EMUL_UNHANDLEABLE));
    1.10          }
    1.11          else
    1.12 @@ -2305,7 +2305,7 @@ x86_emulate(
    1.13                       ? ops->read_dr(modrm_reg, &dst.val, ctxt)
    1.14                       : X86EMUL_UNHANDLEABLE)
    1.15                    : (ops->read_cr
    1.16 -                     ? ops->read_dr(modrm_reg, &dst.val, ctxt)
    1.17 +                     ? ops->read_cr(modrm_reg, &dst.val, ctxt)
    1.18                       : X86EMUL_UNHANDLEABLE));
    1.19          }
    1.20          if ( rc != 0 )