debuggers.hg
changeset 16509:4deb65519d9b
x86 emulate: Emulate atomic read-modify-write instructions as a
straightforward write. Hopefully multiprocessor synchronisation is not
relied upon in real mode!
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
straightforward write. Hopefully multiprocessor synchronisation is not
relied upon in real mode!
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Mon Nov 26 16:57:57 2007 +0000 (2007-11-26) |
parents | 11bfa26dd125 |
children | f676c0dacbb9 |
files | xen/arch/x86/hvm/vmx/realmode.c |
line diff
1.1 --- a/xen/arch/x86/hvm/vmx/realmode.c Mon Nov 26 16:47:10 2007 +0000 1.2 +++ b/xen/arch/x86/hvm/vmx/realmode.c Mon Nov 26 16:57:57 2007 +0000 1.3 @@ -237,7 +237,8 @@ realmode_emulate_cmpxchg( 1.4 unsigned int bytes, 1.5 struct x86_emulate_ctxt *ctxt) 1.6 { 1.7 - return X86EMUL_UNHANDLEABLE; 1.8 + /* Fix this in case the guest is really relying on r-m-w atomicity. */ 1.9 + return realmode_emulate_write(seg, offset, new, bytes, ctxt); 1.10 } 1.11 1.12 static int