[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] x86_emulate: Check single-step status at instruction start rather than end.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1211988645 -3600 # Node ID 6d81a6f6cb2107cc8a3d0cf834ced28a5052619d # Parent 2ec56b04abf48d091310e6f778297d82f328eefe x86_emulate: Check single-step status at instruction start rather than end. This fixes booting of FreeDOS with HIMEM.SYS enabled. Signed-off-by: Trolle Selander <trolle.selander@xxxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 17715:30bf34f5a414d5400028ec094688be696234fcdf xen-unstable date: Sat May 24 08:54:59 2008 +0100 --- xen/arch/x86/x86_emulate.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff -r 2ec56b04abf4 -r 6d81a6f6cb21 xen/arch/x86/x86_emulate.c --- a/xen/arch/x86/x86_emulate.c Tue May 27 10:37:59 2008 +0100 +++ b/xen/arch/x86/x86_emulate.c Wed May 28 16:30:45 2008 +0100 @@ -2036,14 +2036,14 @@ x86_emulate( break; } + /* Inject #DB if single-step tracing was enabled at instruction start. */ + if ( (ctxt->regs->eflags & EFLG_TF) && (rc == X86EMUL_OKAY) && + (ops->inject_hw_exception != NULL) ) + rc = ops->inject_hw_exception(EXC_DB, 0, ctxt) ? : X86EMUL_EXCEPTION; + /* Commit shadow register state. */ _regs.eflags &= ~EFLG_RF; *ctxt->regs = _regs; - - if ( (_regs.eflags & EFLG_TF) && - (rc == X86EMUL_OKAY) && - (ops->inject_hw_exception != NULL) ) - rc = ops->inject_hw_exception(EXC_DB, 0, ctxt) ? : X86EMUL_EXCEPTION; done: return rc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |