- use instrumentation macros for

BX_INSTR_START BX_INSTR_STOP BX_INSTR_RESET BX_INSTR_PRINT
  They used to be callback functions, a long time ago.
This commit is contained in:
Bryce Denney 2001-06-28 19:46:34 +00:00
parent 3d29d5d614
commit b62b7f4bde

View File

@ -3297,16 +3297,16 @@ bx_dbg_instrument_command(char *comm)
{ {
#if BX_INSTRUMENTATION #if BX_INSTRUMENTATION
if ( !strcmp(comm, "start") ) { if ( !strcmp(comm, "start") ) {
BX_CPU(0)->instr_start(); BX_INSTR_START ();
} }
else if ( !strcmp(comm, "stop") ) { else if ( !strcmp(comm, "stop") ) {
BX_CPU(0)->instr_stop(); BX_INSTR_STOP ();
} }
else if ( !strcmp(comm, "reset") ) { else if ( !strcmp(comm, "reset") ) {
BX_CPU(0)->instr_reset(); BX_INSTR_RESET ();
} }
else if ( !strcmp(comm, "print") ) { else if ( !strcmp(comm, "print") ) {
BX_CPU(0)->instr_print(); BX_INSTR_PRINT ();
} }
else { else {
fprintf(stderr, "Error: command instrument %s not implemented.\n", comm); fprintf(stderr, "Error: command instrument %s not implemented.\n", comm);