From ddc7b9abb4b31610cd9e7c152a549e12ddcd631b Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Wed, 27 Mar 2002 17:57:08 +0000 Subject: [PATCH] - experimental patch that was lying around in my dir: when instruction tracing is turned on, print when an interrupt occurs. --- bochs/patches/patch.trace-interrupts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bochs/patches/patch.trace-interrupts diff --git a/bochs/patches/patch.trace-interrupts b/bochs/patches/patch.trace-interrupts new file mode 100644 index 000000000..384d1203f --- /dev/null +++ b/bochs/patches/patch.trace-interrupts @@ -0,0 +1,22 @@ +Index: cpu/exception.cc +=================================================================== +RCS file: /cvsroot/bochs/bochs/cpu/exception.cc,v +retrieving revision 1.9 +diff -u -r1.9 exception.cc +--- cpu/exception.cc 2001/10/03 13:10:37 1.9 ++++ cpu/exception.cc 2001/11/06 20:07:57 +@@ -79,6 +79,14 @@ + BX_DEBUG(("interrupt(): vector = %u, INT = %u, EXT = %u", + (unsigned) vector, (unsigned) is_INT, (unsigned) BX_CPU_THIS_PTR EXT)); + ++#if BX_DEBUGGER ++ if (BX_CPU_THIS_PTR trace) { ++ fprintf (stderr, "Interrupt, vector = %u, INT = %u, EXT = %u", ++ (unsigned) vector, (unsigned) is_INT, (unsigned) BX_CPU_THIS_PTR EXT); ++ } ++#endif ++ ++ + BX_CPU_THIS_PTR save_cs = BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS]; + BX_CPU_THIS_PTR save_ss = BX_CPU_THIS_PTR sregs[BX_SEG_REG_SS]; + BX_CPU_THIS_PTR save_eip = EIP;