From 7e2c49c8aabbf47a7cff0c0e1154b694f0db2343 Mon Sep 17 00:00:00 2001 From: instinc Date: Wed, 3 Oct 2001 19:54:29 +0000 Subject: [PATCH] Added the control to enable/disable register tracing --- bochs/iodev/iodebug.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bochs/iodev/iodebug.cc b/bochs/iodev/iodebug.cc index 8a5546cdf..038e7a3e9 100644 --- a/bochs/iodev/iodebug.cc +++ b/bochs/iodev/iodebug.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: iodebug.cc,v 1.8 2001-10-03 19:06:17 instinc Exp $ +// $Id: iodebug.cc,v 1.9 2001-10-03 19:54:29 instinc Exp $ ///////////////////////////////////////////////////////////////////////// // #include "bochs.h" @@ -165,6 +165,17 @@ void bx_iodebug_c::write( Bit32u addr, Bit32u dvalue, unsigned int io_len ) fprintf( stderr, "request made by the guest os to enable tracing, iodebug port 0x8A00->0x8AE3\n"); BX_CPU(dbg_cpu)->trace = 1; break; + + case( 0x8AE4 ): + fprintf( stderr, "request made by the guest os to disable register tracing, iodebug port 0x8A00->0x8AE4\n"); + BX_CPU(dbg_cpu)->trace_reg = 0; + break; + + case( 0x8AE5 ): + fprintf( stderr, "request made by the guest os to enable register tracing, iodebug port 0x8A00->0x8AE5\n"); + BX_CPU(dbg_cpu)->trace_reg = 1; + break; + #endif case( 0x8AFF ):