From 3f8f6c9a0cef4c6d56db6cc8d47f32637e03b941 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Thu, 28 Jun 2001 19:48:04 +0000 Subject: [PATCH] - added new macros BX_INSTR_INP2 and BX_INSTR_OUTP2, which report the values that are being written and read from I/O accesses. --- bochs/iodev/devices.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bochs/iodev/devices.cc b/bochs/iodev/devices.cc index 8af5ab64c..4990f2fbd 100644 --- a/bochs/iodev/devices.cc +++ b/bochs/iodev/devices.cc @@ -98,7 +98,7 @@ bx_devices_c::~bx_devices_c(void) void bx_devices_c::init(BX_MEM_C *newmem) { - BX_DEBUG(("Init $Id: devices.cc,v 1.12 2001-06-27 20:27:49 fries Exp $")); + BX_DEBUG(("Init $Id: devices.cc,v 1.13 2001-06-28 19:48:04 bdenney Exp $")); mem = newmem; // Start with all IO port address registered to unmapped handler // MUST be called first @@ -475,6 +475,7 @@ bx_devices_c::inp(Bit16u addr, unsigned io_len) handle = read_handler_id[addr]; ret = (* io_read_handler[handle].funct)(io_read_handler[handle].this_ptr, (Bit32u) addr, io_len); + BX_INSTR_INP2(addr, io_len, ret); BX_DBG_IO_REPORT(addr, io_len, BX_READ, ret); return(ret); } @@ -490,6 +491,7 @@ bx_devices_c::outp(Bit16u addr, Bit32u value, unsigned io_len) Bit8u handle; BX_INSTR_OUTP(addr, io_len); + BX_INSTR_OUTP2(addr, io_len, value); BX_DBG_IO_REPORT(addr, io_len, BX_WRITE, value); handle = write_handler_id[addr];